Преглед изворни кода

feat: 数据库配置切换为本地连接

Xiaogang Liao пре 2 месеци
родитељ
комит
3eb5a2cc86
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      cfc-backend/src/main/resources/application.yml

+ 5 - 5
cfc-backend/src/main/resources/application.yml

@@ -16,11 +16,11 @@ spring:
     name: cfc-backend
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://192.168.16.251:3306/zxyj?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
+    url: jdbc:mysql://localhost:3306/zxyj?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
     username: zxyj
     password: zxyj@123
     hikari:
-      jdbc-url: jdbc:mysql://192.168.16.251:3306/zxyj?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
+      jdbc-url: jdbc:mysql://localhost:3306/zxyj?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
       username: zxyj
       password: zxyj@123
       driver-class-name: com.mysql.cj.jdbc.Driver
@@ -28,9 +28,9 @@ spring:
 sfms:
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://bianwoyou.mysql.rds.aliyuncs.com:3305/sfms?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
-    username: sfms
-    password: sfms@123
+    url: jdbc:mysql://localhost:3306/sfms?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
+    username: zxyj
+    password: zxyj@123
 
 mybatis-plus:
   mapper-locations: classpath*:/mapper/**/*.xml