how to skip placeholder value if not supplied in properties file in spring boot?

前端 未结 3 1970
终归单人心
终归单人心 2020-12-22 03:52

I have a spring boot application that uses gradle. I have configured gradle to inject build parameters into application.properties.

Here is my gradle snippet.

<
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-22 04:13

    I have the same problem - really annoying. Best solution I have found so far is to save a run/debug configuration in IntelliJ and then go in an edit the configuration, specifying that the gradle task processResources should be executed before launch.

提交回复
热议问题