스프릥 부트 개념과 활용08(inflearn) - 백기선
Spring boot
프로파일
참고 : IoC컨테이너와 빈 - profile
@Profile 애노테이션은 어디에?
어떤 프로파일을 활성화 할 것인가?
- spring.profiles.active
- 커맨드라인 arguments가 우선순위가 높다.
어떤 프로파일을 추가할 것인가?
- spring.profiles.include
프로파일용 프로퍼티
- application-{profile}.properties
- 프로파일용 프로퍼티 파일이 기본적으로 application.properties보다 우선순위가 높다.