CentOS6+Tomcat8환경에서 Spring 기반으로 프로젝트를 운영중이다.
많은 데이터로 Post로 파라메터로 전송 할때 일 부 글자가 짤리는 문제가 있었다.
Tomcat Server.xml 파일 일부분에 아래와 같이 수정
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="euc-kr" maxPostSize="-1" maxParameterCount="-1" />
maxPostSize개수를 특정값으로 설정해주거나 무제한으로 설정하려면 0 또는 음수로 기입해주면 됨
maxParameterCount="20000", maxParameterCount="-1"
출처: https://lee-mandu.tistory.com/280 [개발/일상_Mr.lee]
반응형
'Server > Tomcat' 카테고리의 다른 글
톰캣 로그 안생기게 하기 및 지난 로그 삭제 배치 설정 (0) | 2024.07.05 |
---|---|
centos, rocky 서버 부팅시 사용자 계정으로 톰켓 자동 실행 설정 (1) | 2024.07.05 |