Przeglądaj źródła

okr 本地启动代码

zhangcl 1 miesiąc temu
rodzic
commit
bef06ab3c3

+ 8 - 9
okr-server/src/main/resources/application-local.yaml

@@ -47,16 +47,15 @@ spring:
       primary: master
       datasource:
         master:
-          url: jdbc:mysql://172.21.20.20:3306/okr-test?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
-          username: ruiqi
-          password: .N_Mdq!BR1W4
+          url: jdbc:mysql://127.0.0.1:3308/okr?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
+          username: root
+          password: 123456
   # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
   redis:
-    host: localhost # 地址
-    port: 6379 # 端口
-  #  username: default
-    database: 10  # 数据库索引
-#    password: 123456
+    host: 127.0.0.1 # 地址
+    port: 6379      # 端口
+    database: 0    # 数据库索引
+    password: 123456
 
 mybatis-plus:
   configuration:
@@ -221,7 +220,7 @@ justauth:
 pf4j:
   pluginsDir: ${user.home}/plugins # 插件目录
 system:
-  url: https://rdm.deepoil.cc/
+  url: https://okr.deepoil.cc/
 portal:
   secret: 71ba46d3-3dd4-5232-9b7e-75765b36897f
 file:

+ 1 - 1
okr-server/src/main/resources/application.yaml

@@ -3,7 +3,7 @@ spring:
     name: okr-server
 
   profiles:
-    active: dev
+    active: local
 
   main:
     allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。