본문 바로가기

IT/Spring

톰캣 한글 깨짐 처리(URIEncoding)

 

1. 톰캣애서 한글이 포함된 URL

 

프로젝트-> Server.xml 선택

 

변경 전

 

 <Connector connectionTimeout="20000" port="8088" protocol="HTTP/1.1" redirectPort="8443"/>

 

 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>

 

 

변경 후

 

<Connector connectionTimeout="20000" port="8088" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="utf-8"/>

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="utf-8"/>