[스프링SPRING] 한글처리

web.xml에서 한글처리 코드 추가

  • web-app태그 사이에 입력한다
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
	<!-- 한글처리 -->
<filter>
<filter-name>encoding</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>encoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

</web-app>

Comments