Setting active profile and config location from command line in spring boot

后端 未结 11 1600
借酒劲吻你
借酒劲吻你 2020-11-27 09:33

I have a spring boot application.

I have three profiles in my application-> development, staging and production. So I have 3 files

  1. ap
11条回答
  •  萌比男神i
    2020-11-27 10:15

    -Dspring.profiles.active=staging -Dspring.config.location=C:\Config
    

    is not correct.

    should be:

    --spring.profiles.active=staging --spring.config.location=C:\Config
    

提交回复
热议问题