개발
톰캣 arguments 자바에서 쓰기
sub3
2019. 12. 6. 10:28
System.getProperty("tistory.server.type");
서버 설정값에 따라서
결과값ㅡlocal, stg, prod
필자의 사용이유는?
빌드 배포시에 매번
Web.xml 수정하고 싶지 않을 때 사용
Context param 을 계속 바꾸기 싫음
Arguments추가 방법
1. 이클립스 run configurations - tomcat server의arguments 추가
2. 톰캣서버의 catalina.bat파일에 JAVA_OPS 값을 참조할 때 필요