Commit 24231009f6cec9689988617bbf86711980fd4f9f

Authored by 周伟鹏
1 parent 37326f03

设置编码

src/main/resources/application.properties
... ... @@ -10,6 +10,11 @@ spring.jpa.properties.hibernate.hbm2ddl.auto=update
10 10 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
11 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 18 spring.thymeleaf.mode=LEGACYHTML5
14 19 #spring.thymeleaf.encoding=UTF-8
15 20 #spring.thymeleaf.content-type=text/html
... ...