@ConfigurationProperties

In this tutorial, you will learn how to use @ConfigurationProperties with Spring Boot Profiles. This tutorial assumes you have a basic knowledge of how to use @ConfigurationProperties in your Spring Boot application. If you are very new to it, please read this tutorial: Spring Boot @ConfigurationProperties Tutorial. You should also have basic knowledge of Spring Boot…

Read More Using Spring Boot @ConfigurationProperties and @Profile

@ConfigurationProperties annotation is used to bind all the properties in a properties file to a Java class. You can then use an object of the Java class annotated with ConfigurationProperties annotation to access configuration properties defined in a properties file. Earlier I shared with you a tutorial on how to read application properties in Spring Boot RESTful…

Read More Spring Boot @ConfigurationProperties Tutorial

In this blog post, you will learn about three different ways to read application properties in the Spring Boot application. Read application.properties using Environment object,  Read a property from application.properties file using @ConfigurationProperties and reading a property using the @Value annotation. To demonstrate how to read application properties in the Spring Boot application, I have created a very…

Read More Reading application.properties in Spring Boot