진이의 Developer Story
한글깨짐 처리 방법 본문
1. POST 방식
web.xml 에 아래의 내용을 정의한다.
encodingFilter
org.springframework.web.filter.CharacterEncodingFilter
false
encoding
UTF-8
2. GET 방식
server.xml 에 아래의 내용을 추가한다. (톰캣서버)
// before
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
// after
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" uriEncoding="UTF-8"/>
'Java > Spring' 카테고리의 다른 글
Log4j formatter (0) | 2016.03.28 |
---|---|
리그오브레전드 API 사용하기 (1) (7) | 2016.02.04 |
Invocation of destroy method 'close' failed on bean with name 'sqlSessionTemplate' (0) | 2016.01.21 |
JUnit MyBatis 테스트 (2) | 2016.01.20 |
(5) Spring+MyBatis 게시판 만들기 - VIEW 작성 (17) | 2016.01.20 |
Comments