If your project has 2 profiles
spring.profiles.active
create 2 application.properties files one for each profile
- local
- prod
spring.profiles.active
create 2 application.properties files one for each profile
- application-local.properties
- application-prod.properties
- mvn spring-boot:run -Dspring.profiles.active=local
- mvn spring-boot:run -Dspring.profiles.active=prod
No comments:
Post a Comment