Skip to content

Instantly share code, notes, and snippets.

@ppeeou
Created February 19, 2017 13:32
Show Gist options
  • Save ppeeou/ac8d8446a4d813c1fe7f979dc49a98b0 to your computer and use it in GitHub Desktop.
Save ppeeou/ac8d8446a4d813c1fe7f979dc49a98b0 to your computer and use it in GitHub Desktop.
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>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!--톰캣 server.xml-->
<Connector port="8080" URIEncoding="UTF-8" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!--maven-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<charset>UTF-8</charset>
<docencoding>UTF-8</docencoding>
<encoding>UTF-8</encoding>
<quiet>true</quiet>
</configuration>
</plugin>
@ppeeou
Copy link
Author

ppeeou commented Feb 19, 2017

이외에 DB , page상 , 파일 저장할 시 utf-8 로 설정되어있는지 확인

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment