What is application properties in spring boot?
Beside this, where do application properties go in spring boot?
You will need to add the application. properties file in your classpath. If you are using Maven or Gradle, you can just put the file under src/main/resources . If you are not using Maven or any other build tools, put that under your src folder and you should be fine.
Similarly one may ask, what is @ConfigurationProperties?
Posted on December 3, 2017. In Spring Boot, the @ConfigurationProperties annotation allows us to map the resource files such as properties or YAML files to Java Bean object. This annotation is applied to a class or a @Bean method in a @Configuration class to map or validate the external properties or YAML files.
In Spring Boot, we can use YAML files instead of properties files. YAML is a human-friendly data serialization standard but is mainly used for configuration files. YAML stands for YAML Ain't Markup Language (a recursive acronym). Spring Framework provides two convenient classes that can be used to load YAML documents.