- Spring Boot 2.0 Projects
- Mohamed Shazin Sadakath
- 70字
- 2021-08-13 16:00:04
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"
}