jeudi 22 juillet 2021

Change configurations depending on the environment in Spring

For years I programmed with the awesome Grails framework. One of it's elegant features is the possibility to define environment-specific configurations in your application.yml.

Example application.yml:

Moving to Spring Boot I was missing this feature until I found out how to do it in the documentation ( section 59.6) using Spring profiles.

Example application.yml:

Aucun commentaire:

Enregistrer un commentaire