/dotenvx-boot-demo

Dotenvx with Spring Boot

Primary LanguageJava

Dotenvx Spring Boot demo

Get Started with JetBrains IDE

Install Dotenvx JetBrains Plugin from the plugin manager.

Open application.properties, and press macOS: ⌘N or Windows/Linux: Alt+Insert to popup Generate menu, and select the options, such as Add public key or Add encrypted variables.

Get Started with CLI

Download the last version of dotenvx-cli, or install it by following the instructions below.

  • homebrew: brew install linux-china/tap/dotenvx-rs
  • cargo: cargo binstall dotenvx-rs
  • shell: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/linux-china/dotenvx-rs/releases/download/v0.4.15/dotenvx-rs-installer.sh | sh

Create your dotenvx key pair:

$ cd dotenvx-boot-demo
$ dotenvx set --encrypt nick Jackie
$ dotenvx -p test set --encrypt nick Tester

Then check your application.properties and start the application.

References