Spring use one application.properties for production and another for debug

You can have 3 properties files, application-dev.properties, application-prod.properties and application.properties. And you can specify all the development properties in your dev properties file and production cionfiguration properties in your prod file

and specify the profile in your application.properties files as below

spring.profiles.active=dev

or you can select/override the profile using -Dprofile= argument in command line.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)