Spring5 Spring profile Spring application profile 설정 애플리케이션 설정을 환경(local, develop, production 등..)에 따라 다르게 적용할 때 profile 옵션을 사용할 수 있다. profile 설정은 Sprign boot 2.4 버전을 기점으로 설정 방식이 달라진다. .yml 기준으로 설명을 진행한다. 참고로 yml의 경우 profile에 --- 구분자를 사용하여 논리적으로 파일을 구분할 수 있다. Spring boot 2.4 이전 profile application.yml # default spring: profiles: active: local --- spring: profiles: local # ... --- spring: profiles: dev # ... --- spring.. 2023. 7. 9. 이전 1 2 다음