1.

How Are Properties Defined? Where?

Answer»

In SPRING boot, we have to define properties in the APPLICATION.properties file exists in classpath of application as FOLLOW.

Example: configure default DATASOURCE bean.

database.host=localhost

database.user=admin

In spring boot, we have to define properties in the application.properties file exists in classpath of application as follow.

Example: configure default DataSource bean.

database.host=localhost

database.user=admin



Discussion

No Comment Found