Question:
I have deployed my war file on AWS’s Elastic Beanstalk as a java app.
I want to specify on AWS : spring.profiles.active like I do when I execute:
1 2 |
java -jar -Dspring.profiles.active=prod target/gaming-boost-0.0.1-SNAPSHOT.war |
I can only configure “Environment Property” on “Configuration”
Answer:
Set below environment variable in ElasticBeanStalk
1 2 |
SPRING_PROFILES_ACTIVE=prod |