Using @ConfigurationProperties in Spring Boot
In my latest blog post I described shortly how one can configure mail in Spring Boot application . To inject properties into the configuration I used Spring’s @Value annotation. But Spring Boot provides an alternative method of working with properties that allows strongly typed beans to govern and validate the configuration of your application. In this post I will demonstrate how to utilize @ConfigurationProperties while configuring the application.