Accessing application.properties in Spring Boot
In this post, We will take a look at accessing property values from the application.properties in a spring boot application with examples. Using @Value annotation The easiest way to access values from application.properties or application.yaml is to use the @Value annotation. Just define these annotations in your Bean classes and spring will populate the values…