2012.11.22 09:50

Spring Parameter 한글 Encoding

1. WEB-INF안에 web.xml 수정


	encodingFilter
	org.springframework.web.filter.CharacterEncodingFilter
	
		encoding
		UTF-8
	
	
		forceEncoding
		true
	


	encodingFilter
	/*


2. Tomcat 또는 Spring TC Server server.xml 추가

<Connector acceptCount="100" connectionTimeout="20000" executor="tomcatThreadPool" maxKeepAliveRequests="15" port="${http.port}" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" URIEncoding="UTF-8"/>

※ 참고로 spring-servlet.xml <bean id="viewResolver" /> 안에 추가

<property name="contentType" value="text/html; charset=UTF-8" />


[출처] Spring Parameter 한글 Encoding

Trackback 0 Comment 0