Skip to content

Commit

Permalink
修复linux下提交中文乱码问题
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozheng committed Dec 10, 2018
1 parent f498165 commit 62a3e2c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mall-admin/src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -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===
Expand Down
2 changes: 1 addition & 1 deletion mall-admin/src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
@@ -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===
Expand Down
2 changes: 1 addition & 1 deletion mall-demo/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server.port=8082
#===server end===

#数据库连接池配置
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

Expand Down
2 changes: 1 addition & 1 deletion mall-portal/src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ logging.level.com.macro.mall.portal.dao=debug
#===logging end===

#===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===
Expand Down
2 changes: 1 addition & 1 deletion mall-portal/src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server.port=8085
#===server end===

#===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===
Expand Down
2 changes: 1 addition & 1 deletion mall-search/src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -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===
Expand Down
2 changes: 1 addition & 1 deletion mall-search/src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
@@ -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===
Expand Down

0 comments on commit 62a3e2c

Please sign in to comment.