Spring @ConfigurationProperties

Spring provides several ways of injecting/looking up values from the application configuration properties file. One of them is the @Value annotation discussed in the Spring @Value annotation tricks write up. Another one is the using @ConfigurationProperties annotation on a configuration bean to inject properties values to a bean and use it in the class. Also is the using of Environment object to lookup values, properties or profiles…