IT/Spring
[tomcat] eclipse 에서 tomcat 서버 새로 생성했을시 해줄 설정들
알라이또
2019. 5. 13. 17:33
반응형
1. tomcat 구동 start 시간 변경 및 IPv6 말고 IPv4 변경
"-Djava.net.preferIPv4Stack=true"
2. 서버인코딩
server.xml
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
3. 서버 재시작시 세션값 자동 리셋
context.xml
<Context>
<!-- 추가 -->
<Manager pathname="">
<saveOnRestart>false</saveOnRestart>
</Manager>
</Context>