[Spring] STS - Spring 한글 인코딩하기 :: 매운코딩
728x90
300x250

Winodows - Preferences - General - Workspace 아래에서 Other : UTF-8로 설정

 

web.xml 파일에 아래 내용 붙여넣기

	<!-- Character Set Filter -->
	<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>
728x90

+ Recent posts