What is application.properties in Spring Boot? | Code Factory


Donate : Link

Medium Blog : Link

Applications : Link

One of the advantage Spring Boot provides us is “lesser configuration” compared to standard spring framework. Spring Boot applies it’s typical convention over configuration approach to property files. Spring boot introduced its default application properties named as “application.properties” file and it is auto detected without any spring based configurations. We need to place application.properties file inside “src/main/resources” directory.

So, by using this default file, we don’t have to explicitly register a PropertySource, or even provide a path to a property file.

Spring boot specified various common default properties inside application.properties to support Logging, AOP, Identity, Hibernat, JPA, JMX, Email, etc. etc. We dont need to specify all the default properties in all the cases. We can specify them only on-demand. This is how spring reducing XML based configurations and changing them to simple properties.

You can find all default properties given by spring boot here :  Common Application Properties

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s