I can run my Spring Boot jar in Git Bash with the following command:
java -Dspring.profiles.active=development -Djasypt.encryptor.password=$JASYPT_DEV_PWD -DAPP_LOGS=C:/temp/logs -DDEBUG_OPTS -jar target/application-0.0.1-SNAPSHOT
I'm now trying to run the application in IntelliJ. The run configuration contains the following:
-Dspring.profiles.active=development
-Djasypt.encryptor.password=$JASYPT_DEV_PWD
-DAPP_LOGS=C:\\temp\\logs
When I run the application in my IDE I get:
IllegalStateException: Required Encryption configuration property missing: jasypt.encryptor.password
I tried setting the value for JASYPT_DEV_PWD in my system environment variables, my run configuration environment variables and also passing the password directly in the -Djasypt.encryptor.password=.
How should I set my run configuration to get the application working in IntelliJ?
Moved
-Djasypt.encryptor.password=$JASYPT_DEV_PWDto environmental variables in the run configuration. Didn't seem to work with$JASYPT_DEV_PWDthough so copied the actual password in.