Browse Source

no message

ly 1 year ago
parent
commit
ffacb727fe
1 changed files with 14 additions and 14 deletions
  1. 14 14
      src/main/resources/application-dev.yml

+ 14 - 14
src/main/resources/application-dev.yml

@@ -1,17 +1,20 @@
 # 数据源配置
 spring:
-    application:
-        name: ezhizao-yzbh-sys-zx
+    cloud:
+        nacos:
+            discovery:
+                ip: 82.156.209.15   # 可指定 注册IP 默认注册服务启动的机器的内网IP
+                server-addr: 82.156.209.15:8848
     # redis 配置
     redis:
         # 地址
-        host: 120.46.159.163
+        host: 62.234.54.84
         # 端口,默认为6379
-        port: 6379
+        port: 16379
         # 数据库索引
         database: 8
         # 密码
-        password: ezhizao.cn123456
+        password: yuchang@2023
         # 连接超时时间
         timeout: 10s
         lettuce:
@@ -30,12 +33,9 @@ spring:
         druid:
             # 主库数据源
             master:
-                url: jdbc:mysql://120.46.159.163:3306/ezhizao_yzbh_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
-                username: root
-                password: ezhizao.cn123456
-#                url: jdbc:mysql://localhost:3306/ezhizao_yzbh_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
-#                username: root
-#                password: 123456
+                url: jdbc:mysql://82.156.209.15:3306/ezhizao_yzbh_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
+                username: admin
+                password: admin
             # 从库数据源
 #            slave:
 #                # 从数据源开关/默认关闭
@@ -70,8 +70,8 @@ spring:
                 allow:
                 url-pattern: /druid/*
                 # 控制台管理用户名和密码
-                login-username: admin
-                login-password: ezhizao.cn
+                login-username: ezhizao
+                login-password: 123456
             filter:
                 stat:
                     enabled: true
@@ -84,4 +84,4 @@ spring:
                         multi-statement-allow: true
 # 文件上传
 ruoyi:
-    profile: D:/Ezhizao/yzbh/
+    profile: /home/ruoyi/yzbh/