One way to expose the custom application configuration in Spring Boot is by using the @Value annotation. But, the only problem with this annotation is that all the configuration values will be distributed throughout the application. Instead, you can use a centralized approach.
By centralized approach, I mean that you can define a configuration component using the @ConfigurationProperties as follows: