Spring Boot application.properties value not populating

后端 未结 8 560
孤街浪徒
孤街浪徒 2020-12-04 11:41

I have a very simple Spring Boot app that I\'m trying to get working with some externalised configuration. I\'ve tried to follow the information on the spring boot documenta

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 12:17

    If you're working in a large multi-module project, with several different application.properties files, then try adding your value to the parent project's property file.

    If you are unsure which is your parent project, check your project's pom.xml file, for a tag.

    This solved the issue for me.

提交回复
热议问题