티스토리 뷰

728x90

springboot

스프릥 부트 개념과 활용08(inflearn) - 백기선

Spring boot

프로파일

참고 : IoC컨테이너와 빈 - profile

@Profile 애노테이션은 어디에?

어떤 프로파일을 활성화 할 것인가?

  • spring.profiles.active
    springbootspringboot
  • 커맨드라인 arguments가 우선순위가 높다.

어떤 프로파일을 추가할 것인가?

  • spring.profiles.include
    springboot

프로파일용 프로퍼티

  • application-{profile}.properties
  • 프로파일용 프로퍼티 파일이 기본적으로 application.properties보다 우선순위가 높다.
    springboot


728x90

'Spring > Boot' 카테고리의 다른 글

스프링 부트 활용10 - Test  (0) 2020.10.27
스프링 부트 활용09 - 로깅  (0) 2020.10.27
스프링 부트 활용07 - 외부설정  (0) 2020.10.27
스프링 부트 활용06 - SpringApplication  (0) 2020.10.27
스프링 부트 원리05 - JAR  (0) 2020.10.27
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday