Setting the default active profile in Spring-boot

前端 未结 14 1903
感动是毒
感动是毒 2020-12-13 08:20

I want my default active profile to be production if -Dspring.profiles.active is not set.

I tried the following in my application.pro

14条回答
  •  情话喂你
    2020-12-13 08:49

    If you are using AWS Lambda with SprintBoot, then you must declare the following under environment variables:

    key: JAVA_TOOL_OPTIONS & value: -Dspring.profiles.active=dev

提交回复
热议问题