Spring Boot: passing system properties to maven

前端 未结 3 2012
误落风尘
误落风尘 2021-02-15 16:41

I tried:

mvn -Dspring.profiles.active=dev spring-boot:run

but it does not affect my default configuration. I\'ve googled a little and found:

3条回答
  •  无人及你
    2021-02-15 17:26

    Try running your application with:

    mvn spring-boot:run -Drun.jvmArguments="-Dspring.profiles.active=dev"

    I don't know which version your are using but check this issue too

提交回复
热议问题