Client/기타 솔루션
[카페24] 톰캣에 Spring Profile 지정하기
kmhan
2023. 5. 10. 18:19
728x90
반응형
0. Spring 프로젝트 VM arguments에 설정한 Spring Profile
-Dspring.profiles.active=prod
1. 톰캣에 Spring Profile 지정
리눅스 기준
tomcat/bin 디렉토리에서
setenv.sh 파일 생성 후 아래와 같이 작성
JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active={profile_name}"
출처 : https://feco.tistory.com/106
728x90
반응형