Spring

Tomcat server.xml ํŒŒ์ผ UTF-8 ์„ค์ •

natrue 2021. 3. 18. 15:05
728x90

ํ”„๋กœ์ ํŠธ๋ฅผ ์‹คํ–‰ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” server๊ฐ€ ํ•„์š”ํ•˜๋‹ค.

์„œ๋ฒ„๋ฅผ ์ถ”๊ฐ€ํ•œ ํ›„ ํ•œ๊ธ€๊นจ์ง์„ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด์„ 

server.xml ํŒŒ์ผ์— URIEncoding="UTF-8"๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผํ•œ๋‹ค.

 

 

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

 

 URIEncoding="UTF-8" 

 

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