runnerpaul
runnerpaul

Reputation: 7236

Run configuration setup in IntelliJ

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?

Upvotes: 1

Views: 1418

Answers (1)

runnerpaul
runnerpaul

Reputation: 7236

Moved -Djasypt.encryptor.password=$JASYPT_DEV_PWD to environmental variables in the run configuration. Didn't seem to work with $JASYPT_DEV_PWD though so copied the actual password in.

Upvotes: 1

Related Questions