wyj0522 3 týždňov pred
rodič
commit
cd532973e5

+ 6 - 6
eco-start/src/main/resources/application-dev.yml

@@ -18,7 +18,7 @@ spring:
       # 多久检查一次连接的活性
       keepaliveTime: 30000
   flyway:
-    enabled: true
+    enabled: false
     baseline-on-migrate: true
     clean-on-validation-error: false
     sql-migration-prefix: V
@@ -39,9 +39,9 @@ mybatis-flex:
       type: ${spring.datasource.type}
       # mysql数据库
       driver-class-name: com.mysql.cj.jdbc.Driver
-      url: jdbc:mysql://localhost:3306/eco?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
+      url: jdbc:mysql://101.126.133.7:9006/digital?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
       username: root
-      password: P3x0LG8jzyHRX59l
+      password: 404cf3eae29df38f
 #      postgresql数据库
 #      driver-class-name: org.postgresql.Driver
 #      url: jdbc:postgresql://localhost:5432/eco?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
@@ -72,13 +72,13 @@ mybatis-flex:
 spring.data:
   redis:
     # 地址
-    host: localhost
+    host: 101.126.133.7
     # 端口,默认为6379
     port: 6379
     # 数据库索引
     database: 0
     # 密码(如没有密码请注释掉)
-    password: CWwYsGjafmv8Sr7g
+    password: Z;G4AS:Vor'YF#p?
     # 连接超时时间
     timeout: 10s
     # 是否开启ssl
@@ -120,7 +120,7 @@ spring.boot.admin.client:
 powerjob:
   worker:
     # 如何开启调度中心请查看文档教程 false true
-    enabled: true
+    enabled: false
     # 需要先在 powerjob 登录页执行应用注册后才能使用
     app-name: eco-worker
     # 28080 端口 随着主应用端口飘逸 避免集群冲突

+ 12 - 11
eco-start/src/main/resources/application-prod.yml

@@ -29,15 +29,15 @@ mybatis-flex:
       # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
       type: ${spring.datasource.type}
       # mysql数据库
-      #      driver-class-name: com.mysql.cj.jdbc.Driver
-      #      url: jdbc:mysql://localhost:3306/eco?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
-      #      username: root
-      #      password: Root@369
+      driver-class-name: com.mysql.cj.jdbc.Driver
+      url: jdbc:mysql://101.126.133.7:9006/digital?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
+      username: root
+      password: 404cf3eae29df38f
       #postgresql数据库
-      driver-class-name: org.postgresql.Driver
-      url: jdbc:postgresql://localhost:5432/eco?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
-      username: postgres
-      password: postgres@369
+#      driver-class-name: org.postgresql.Driver
+#      url: jdbc:mysql://101.126.133.7:9006/digital?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+#      username: postgres
+#      password: postgres@369
 
 #    # 数据源-2
 #    ds2:
@@ -58,21 +58,22 @@ mybatis-flex:
 spring.data:
   redis:
     # 地址
-    host: localhost
+    host: 101.126.133.7
     # 端口,默认为6379
     port: 6379
     # 数据库索引
     database: 0
     # 密码(如没有密码请注释掉)
-    # password:
+    password: Z;G4AS:Vor'YF#p?
     # 连接超时时间
     timeout: 10s
     # 是否开启ssl
     ssl.enabled: false
 
+
 redisson:
   # redis key前缀
-  keyPrefix: eco
+  keyPrefix: digital
   # 线程池数量
   threads: 16
   # Netty线程池数量