본문 바로가기
IT/Spring

한글 처리 web.xml

by 봉즙 2019. 7. 31.
	<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>

 

<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

'IT > Spring' 카테고리의 다른 글

Model  (0) 2019.07.31
글자 깨질 때  (0) 2019.07.31
MVC  (0) 2019.07.30
외부 파일 이용  (0) 2019.07.29
Scope  (0) 2019.07.26

댓글