修复linux下提交中文乱码问题

This commit is contained in:
zhh
2018-12-10 15:05:47 +08:00
parent f4981650b0
commit 62a3e2ca34
7 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
#===datasource start===
spring.datasource.url=jdbc:mysql://localhost:3306/mall
spring.datasource.url=jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=root
#===datasource end===

View File

@@ -1,5 +1,5 @@
#===datasource start===
spring.datasource.url=jdbc:mysql://db:3306/mall
spring.datasource.url=jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=root
#===datasource end===