DEV Community

[Comment from a deleted post]
Collapse
 
matteojoliveau profile image
Matteo Joliveau

Never define your Spring profiles in application.properties.

Pass them as a CLI parameter via -Dspring.profiles.active=***, with empty as the default (dev) profile