Tag: YAML

  • @ConfigurationProperties Annotation in Spring Boot

    @ConfigurationProperties Annotation in Spring Boot

    In this article, we’ll talk about how @ConfigurationProperties annotation works and how you can transform any configuration to a Java Object. 1. What is @ConfigurationProperties @ConfigurationProperties annotation, allows you to import any configuration that is located in application.properties and map it to a Java Object. Alternatively, you can use application.yml which enhances the readability of…