Commit 24231009f6cec9689988617bbf86711980fd4f9f

Authored by 周伟鹏
1 parent 37326f03

设置编码

src/main/resources/application.properties
@@ -10,6 +10,11 @@ spring.jpa.properties.hibernate.hbm2ddl.auto=update @@ -10,6 +10,11 @@ spring.jpa.properties.hibernate.hbm2ddl.auto=update
10 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect 10 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
11 spring.jpa.show-sql= true 11 spring.jpa.show-sql= true
12 12
  13 +server.tomcat.uri-encoding=UTF-8
  14 +spring.http.encoding.charset=UTF-8
  15 +spring.http.encoding.enabled=true
  16 +spring.http.encoding.force=true
  17 +
13 spring.thymeleaf.mode=LEGACYHTML5 18 spring.thymeleaf.mode=LEGACYHTML5
14 #spring.thymeleaf.encoding=UTF-8 19 #spring.thymeleaf.encoding=UTF-8
15 #spring.thymeleaf.content-type=text/html 20 #spring.thymeleaf.content-type=text/html