In line with the 12-factor methodology, which emphasizes strict separation of config in modern apps, we may need to configure server depending on the environment (or Spring profile(s)) like dev, production. This will not only help in managing different environments but also provide an opportunity to explore and understand how Spring Boot properties can be used effectively.
In line with the 12-factor methodology, which emphasizes strict separation of config in modern apps, we may need to configure server depending on the environment (or Spring profile(s)) like
dev
,production
. This will not only help in managing different environments but also provide an opportunity to explore and understand how Spring Boot properties can be used effectively.Create distinct configurations for each profile (check Spring Boot Profile-Specific Files).
Tasks :
production
profile (e.g., MySQL, PostgreSQL).production
profile.Note: it's possible to get self-signed certificate to enable SSL locally, check the guide.
Learning Goals :