선 확인 해야할것: 
mysql 인코딩 처리 (여기 참조)

스프링에서 한글을 인식시키위해서 XML 설정에 아래와 같은 값을 집어 넣어준다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<filter>       
    <filter-name>CharacterEncodingFilter</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>       
    <init-param>          
        <param-name>forceEncoding</param-name>        
           <param-value>true</param-value>      
    </init-param>
</filter>
<filter-mapping>       
<filter-name>CharacterEncodingFilter</filter-name>    
   <url-pattern>/*</url-pattern>
</filter-mapping>
cs

참고자료: 
http://ultteky.egloos.com/10488541


+ Recent posts