개발환경 Spring Profile 설정하기
Open Launch configuration가 어딧더라... 못찾아서 적어놓는 중..
Open Launch configuration
Arguments 탭에서, VM arguments 부분에 환경에 맞게 추가하기
로컬환경설정인 경우 -Dspring.profiles.active=local
테스트서버환경인 경우 -Dspring.profiles.active=dev
배포서버환경인 경우 -Dspring.profiles.active=prod
참고 블로그 : https://hhyemi.github.io/2020/10/06/10061148.html
개발환경에 맞는 Spring Profile 설정 - CODE:H
개발환경에 맞는 Spring Profile 설정하기 개발을 하다 보면 데이터베이스 설정, 파일 위치설정 등 환경에 따라 설정이 다른 경우 config파일을 여러 개 사용할 때가 있다. local_set.config : 로컬환경 dev_s
hhyemi.github.io
728x90
300x250