티스토리 뷰
Java Spring 한글처리
- java spring 초기설정 : 한글 처리 (UTF-8)
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> <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>
'개발 > JAVA-SPRING' 카테고리의 다른 글
PHP 개발자의 자바 스프링 부트 배우기 (1일차) (0) | 2024.05.16 |
---|
댓글