Spring Boot 2.0 Projects
上QQ阅读APP看书,第一时间看更新

Property origin

Another notable addition to configuration property binding is exposing the origins of a property. This is a useful feature because many developers have struggled in the past because they had configured the wrong file and ran an application to just see unexpected results. Now, the origin of a property is shown along with the file, line number, and column number:

"demo.user-Name": {  
"value":"shazin",
"origin":"class path resource [application.yml]:5:14"
}