提交 491f7c27 编写于 作者: 街头小贩's avatar 街头小贩 提交者: Gitee

调整乱码问题

上级 b7e25e42
......@@ -11,7 +11,7 @@ web.validate.message=messages
web.validate.encode=UTF-8
# applicationContext-admin.xml
jdbc.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/jforum?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull
jdbc.url=jdbc:mysql://127.0.0.1:3306/jforum?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull
jdbc.username=root
jdbc.password=root
jdbc.pool.init=1
......
......@@ -30,9 +30,9 @@ public class App extends AbstractAnnotationConfigDispatcherServletInitializer {
protected Filter[] getServletFilters() {
//
return new Filter[]{
new org.springframework.web.filter.CharacterEncodingFilter("UTF-8", true),
new DelegatingFilterProxy("springSessionRepositoryFilter"),
new DelegatingFilterProxy("tokenParamFilter"),
new org.springframework.web.filter.CharacterEncodingFilter("UTF-8", true),
new org.sitemesh.config.ConfigurableSiteMeshFilter()};
}
}
\ No newline at end of file
......@@ -11,7 +11,7 @@ web.validate.message=messages
web.validate.encode=UTF-8
# applicationContext-admin.xml
jdbc.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/jforum?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull
jdbc.url=jdbc:mysql://127.0.0.1:3306/jforum?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull
jdbc.username=root
jdbc.password=root
jdbc.pool.init=1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册