티스토리 뷰

SPRING

1030 spring 한글깨짐문제 해결

mind-a 2018. 10. 31. 04:33

한글 설정을 할 때는.. 모든 필터 중 encoding filter를 가장 위에 놓도록 하자..


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<filter>
 
        <filter-name>encodingFilter</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>encodingFilter</filter-name>
 
        <url-pattern>/*</url-pattern>
 
</filter-mapping
 
<jsp-config>
 
    <jsp-property-group>
 
        <url-pattern>*.jsp</url-pattern>
 
        <page-encoding>UTF-8</page-encoding>
 
    </jsp-property-group>
 
</jsp-config>
 
    
 
    <filter>
 
        <filter-name>hiddenHttpMethodFilter</filter-name>
 
        <filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
 
    </filter>
 
    <filter-mapping>
 
        <filter-name>hiddenHttpMethodFilter</filter-name>
 
        <url-pattern>/*</url-pattern>
 
    </filter-mapping>
cs


'SPRING' 카테고리의 다른 글

180807 개발일기  (0) 2018.08.07
0806 개발일기 게시판 검색기능  (0) 2018.08.07
0804 개발일기 페이징 마무리  (0) 2018.08.04
0803 개발일기 페이징 Criteria  (0) 2018.08.04
0731 개발일기 익셉션 페이징  (0) 2018.07.31
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함