web.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <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> | cs |
추가 후 jsp 파일의 페이지 인코딩을 UTF-8 로 맞춰준다.
'Spring' 카테고리의 다른 글
Spring Framework : Spring Security @Valid (0) | 2017.06.09 |
---|---|
Spring Framework : Spring Security 패스워드 암호화 (0) | 2017.06.09 |
Spring Framework : Spring Security 인증, 권한부여 (0) | 2017.06.08 |
Spring Framework : Spring Security 권한설정 DB연동하기 (0) | 2017.06.05 |
Spring Framework : Spring security customizing (0) | 2017.05.29 |