resources in a Spring Boot application are missing from jar file when using Spring Boot Maven Plugin

前端 未结 3 1476
醉话见心
醉话见心 2020-12-28 17:35

I am using Spring-Boot v1.3.0.M5 with Maven v3.3.3. I used to be able to run my Spring Boot (boot) application from the console with this command.

mvn clean pa

3条回答
  •  执念已碎
    2020-12-28 18:24

    Since Spring Boot 1.3, in order to have resources filtered as expected, we have to use new @@ format:

    some.key = @value@
    

    instead of classic:

    some.key = ${value}
    

    Relevant spring-boot issue: https://github.com/spring-projects/spring-boot/issues/980

提交回复
热议问题