티스토리 뷰

WEB 웹

UTF-8 설정

KIMSG 2017. 7. 22. 17:58
다음을 web.xml에 추가한다.


<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>
</filter>
<filter-mapping>
    <filter-name>encodingFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>



그리고.......


<context-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath*:config/spring/context-*.xml</param-value>
      </context-param>


이렇게 수정한다.... 원래는            <param-value></param-value>    이렇게 아무것도 없었다...





반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
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
글 보관함