How to run bootRun with spring profile via gradle task

前端 未结 13 1386
误落风尘
误落风尘 2020-12-04 19:20

I\'m trying to set up gradle to launch the bootRun process with various spring profiles enabled.

My current bootRun configuration looks lik

13条回答
  •  伪装坚强ぢ
    2020-12-04 19:50

    Add to VM options: -Dspring.profiles.active=dev

    Or you can add it to the build.gradle file to make it work: bootRun.systemProperties = System.properties.

提交回复
热议问题