lyhzzz 6 months ago
parent
commit
db7a68cdbd

+ 116 - 0
src/main/resources/application-test.yaml

@@ -0,0 +1,116 @@
+spring:
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    #120.25.146.52
+    dynamic:
+      primary: db1
+      strict: false
+      datasource:
+        db1:
+          driver-class-name: com.mysql.jdbc.Driver
+          #url: jdbc:mysql://120.25.146.52:13306/fd_fusion?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          #url: jdbc:mysql://192.168.0.25:3306/fd_fusion_xj?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          url: jdbc:mysql://192.168.9.27:3306/fd_fusion_xj?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          username: root
+          password: mysql123!ROOT.
+        db2:
+          driver-class-name: com.mysql.jdbc.Driver
+          #url: jdbc:mysql://192.168.0.25:3306/4dkankan_v4?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          url: jdbc:mysql://192.168.9.27:3306/4dkankan_v4?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          username: root
+          password: mysql123!ROOT.
+
+
+  redis:
+    host: 192.168.9.27
+    port: 6379
+    timeout: 6000ms
+    password: redis123!ROOT.
+    jedis:
+      pool:
+        max-active: 10  #连接池最大连接数(使用负值表示没有限制)
+        max-idle: 10 # 连接池中的最大空闲连接
+        min-idle: 5 # 连接池中的最小空闲连接
+        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
+    lettuce:
+      shutdown-timeout: 0ms
+
+4dkk:
+  laserService:
+    basePath: http://192.168.9.27:9795
+  fdService:
+    basePath: http://192.168.9.27:8081
+  takeLookService:
+    basePath: http://192.168.9.27:8081
+
+
+
+logging:
+  config: classpath:logback-spring.xml
+  path: /home/backend/4dkankan_v4
+
+mybatis-plus:
+  configuration:
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql日志
+
+
+
+forest:
+  ## 日志总开关,打开/关闭Forest请求/响应日志(默认为 true)
+  log-enabled: true
+  ## 打开/关闭Forest请求日志(默认为 true)
+  log-request: true
+  ## 打开/关闭Forest响应状态日志(默认为 true)
+  log-response-status: true
+  ## 打开/关闭Forest响应内容日志(默认为 false)
+  log-response-content: true
+  ## 请求超时时间,单位为毫秒, 默认值为3000
+  timeout: 10000
+  ## 连接超时时间,单位为毫秒, 默认值为2000
+  connect-timeout: 10000
+
+upload:
+  type: local
+  query-path: /oss/
+oss:
+  #point: http://oss-cn-shenzhen-internal.aliyuncs.com
+  point:
+  key:
+  secrey:
+  bucket: 4dkankan
+  small:
+  basePath: /oss/
+
+# Sa-Token配置
+sa-token:
+  # token名称 (同时也是cookie名称)
+  token-name: token
+  # token有效期,单位s 默认30天, -1代表永不过期
+  timeout: -1
+  # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
+  activity-timeout: -1
+  # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
+  is-concurrent: true
+  # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
+  is-share: false
+  # token风格
+  token-style: uuid
+  jwt-secret-key: XX#$%()(#*!()!KL<><MQLMNQNQJQK&sdfkjsdrow32234545fdf>?N<:{LWPW
+  # 是否输出操作日志
+  is-log: false
+
+fdkk:
+  register:
+    validCode: 2a22bac40f44af4d3b5fdc20ea706fc5
+
+# MinIO 配置
+minio:
+  endpoint: http://192.168.9.27:9000      # MinIO服务地址
+  fileHost: http://192.168.9.27:9000      # 文件地址host
+  bucketName: laser-data                      # 存储桶bucket名称
+  accessKey: 2dn1SibXOo1VrKWERTrE                         # 用户名
+  secretKey: RrKrSifN6BwFpqMKp8g1xg4xoN0u8wUSuDEWkpMK      # 密码
+  bucketChunk: fusion-chunk
+  chunkSize: 104857600
+
+

+ 116 - 0
src/main/resources/application-xj.yaml

@@ -0,0 +1,116 @@
+spring:
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    #120.25.146.52
+    dynamic:
+      primary: db1
+      strict: false
+      datasource:
+        db1:
+          driver-class-name: com.mysql.jdbc.Driver
+          #url: jdbc:mysql://120.25.146.52:13306/fd_fusion?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          #url: jdbc:mysql://192.168.0.25:3306/fd_fusion_xj?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          url: jdbc:mysql://127.0.0.1:3306/fd_fusion_xj?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          username: root
+          password: mysql123!ROOT.
+        db2:
+          driver-class-name: com.mysql.jdbc.Driver
+          #url: jdbc:mysql://192.168.0.25:3306/4dkankan_v4?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          url: jdbc:mysql://127.0.0.1:3306/4dkankan_v4?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+          username: root
+          password: mysql123!ROOT.
+
+
+  redis:
+    host: 127.0.0.1
+    port: 6379
+    timeout: 6000ms
+    password: redis123!ROOT.
+    jedis:
+      pool:
+        max-active: 10  #连接池最大连接数(使用负值表示没有限制)
+        max-idle: 10 # 连接池中的最大空闲连接
+        min-idle: 5 # 连接池中的最小空闲连接
+        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
+    lettuce:
+      shutdown-timeout: 0ms
+
+4dkk:
+  laserService:
+    basePath: http://127.0.0.1:9795
+  fdService:
+    basePath: http://127.0.0.1:8081
+  takeLookService:
+    basePath: http://127.0.0.1:8081
+
+
+
+logging:
+  config: classpath:logback-spring.xml
+  path: /home/backend/4dkankan_v4
+
+mybatis-plus:
+  configuration:
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql日志
+
+
+
+forest:
+  ## 日志总开关,打开/关闭Forest请求/响应日志(默认为 true)
+  log-enabled: true
+  ## 打开/关闭Forest请求日志(默认为 true)
+  log-request: true
+  ## 打开/关闭Forest响应状态日志(默认为 true)
+  log-response-status: true
+  ## 打开/关闭Forest响应内容日志(默认为 false)
+  log-response-content: true
+  ## 请求超时时间,单位为毫秒, 默认值为3000
+  timeout: 10000
+  ## 连接超时时间,单位为毫秒, 默认值为2000
+  connect-timeout: 10000
+
+upload:
+  type: local
+  query-path: /oss/
+oss:
+  #point: http://oss-cn-shenzhen-internal.aliyuncs.com
+  point:
+  key:
+  secrey:
+  bucket: 4dkankan
+  small:
+  basePath: /oss/
+
+# Sa-Token配置
+sa-token:
+  # token名称 (同时也是cookie名称)
+  token-name: token
+  # token有效期,单位s 默认30天, -1代表永不过期
+  timeout: -1
+  # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
+  activity-timeout: -1
+  # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
+  is-concurrent: true
+  # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
+  is-share: false
+  # token风格
+  token-style: uuid
+  jwt-secret-key: XX#$%()(#*!()!KL<><MQLMNQNQJQK&sdfkjsdrow32234545fdf>?N<:{LWPW
+  # 是否输出操作日志
+  is-log: false
+
+fdkk:
+  register:
+    validCode: 2a22bac40f44af4d3b5fdc20ea706fc5
+
+# MinIO 配置
+minio:
+  endpoint: http://127.0.0.1:9000      # MinIO服务地址
+  fileHost: http://127.0.0.1:9000      # 文件地址host
+  bucketName: laser-data                      # 存储桶bucket名称
+  accessKey: 2dn1SibXOo1VrKWERTrE                         # 用户名
+  secretKey: RrKrSifN6BwFpqMKp8g1xg4xoN0u8wUSuDEWkpMK      # 密码
+  bucketChunk: fusion-chunk
+  chunkSize: 104857600
+
+

+ 1 - 113
src/main/resources/application.yaml

@@ -8,123 +8,11 @@ server:
 
 
 spring:
 spring:
   profiles:
   profiles:
-    active: ${activeProfile:local}
+    active: ${activeProfile:xj}
   servlet:
   servlet:
     multipart:
     multipart:
       max-file-size: 1000MB
       max-file-size: 1000MB
       maxRequestSize: 1000MB
       maxRequestSize: 1000MB
-  datasource:
-    type: com.alibaba.druid.pool.DruidDataSource
-    #120.25.146.52
-    dynamic:
-      primary: db1
-      strict: false
-      datasource:
-        db1:
-          driver-class-name: com.mysql.jdbc.Driver
-          #url: jdbc:mysql://120.25.146.52:13306/fd_fusion?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
-          #url: jdbc:mysql://192.168.0.25:3306/fd_fusion_xj?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
-          url: jdbc:mysql://192.168.9.27:3306/fd_fusion_xj?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
-          username: root
-          password: mysql123!ROOT.
-        db2:
-          driver-class-name: com.mysql.jdbc.Driver
-          #url: jdbc:mysql://192.168.0.25:3306/4dkankan_v4?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
-          url: jdbc:mysql://192.168.9.27:3306/4dkankan_v4?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
-          username: root
-          password: mysql123!ROOT.
 
 
 
 
-  redis:
-    host: 192.168.9.27
-    port: 6379
-    timeout: 6000ms
-    password: redis123!ROOT.
-    jedis:
-      pool:
-        max-active: 10  #连接池最大连接数(使用负值表示没有限制)
-        max-idle: 10 # 连接池中的最大空闲连接
-        min-idle: 5 # 连接池中的最小空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-    lettuce:
-      shutdown-timeout: 0ms
-
-4dkk:
-  laserService:
-    basePath: http://192.168.9.27:9795
-  fdService:
-    basePath: http://192.168.9.27:8081
-  takeLookService:
-    basePath: http://192.168.9.27:8081
-
-
-
-logging:
-  config: classpath:logback-spring.xml
-  path: /home/backend/4dkankan_v4
-
-mybatis-plus:
-  configuration:
-    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql日志
-
-
-
-forest:
-  ## 日志总开关,打开/关闭Forest请求/响应日志(默认为 true)
-  log-enabled: true
-  ## 打开/关闭Forest请求日志(默认为 true)
-  log-request: true
-  ## 打开/关闭Forest响应状态日志(默认为 true)
-  log-response-status: true
-  ## 打开/关闭Forest响应内容日志(默认为 false)
-  log-response-content: true
-  ## 请求超时时间,单位为毫秒, 默认值为3000
-  timeout: 10000
-  ## 连接超时时间,单位为毫秒, 默认值为2000
-  connect-timeout: 10000
-
-upload:
-  type: local
-  query-path: /oss/
-oss:
-  #point: http://oss-cn-shenzhen-internal.aliyuncs.com
-  point:
-  key:
-  secrey:
-  bucket: 4dkankan
-  small:
-  basePath: /oss/
-
-# Sa-Token配置
-sa-token:
-  # token名称 (同时也是cookie名称)
-  token-name: token
-  # token有效期,单位s 默认30天, -1代表永不过期
-  timeout: -1
-  # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
-  activity-timeout: -1
-  # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
-  is-concurrent: true
-  # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
-  is-share: false
-  # token风格
-  token-style: uuid
-  jwt-secret-key: XX#$%()(#*!()!KL<><MQLMNQNQJQK&sdfkjsdrow32234545fdf>?N<:{LWPW
-  # 是否输出操作日志
-  is-log: false
-
-fdkk:
-  register:
-    validCode: 2a22bac40f44af4d3b5fdc20ea706fc5
-
-# MinIO 配置
-minio:
-  endpoint: http://192.168.9.27:9000      # MinIO服务地址
-  fileHost: http://192.168.9.27:9000      # 文件地址host
-  bucketName: laser-data                      # 存储桶bucket名称
-  accessKey: 2dn1SibXOo1VrKWERTrE                         # 用户名
-  secretKey: RrKrSifN6BwFpqMKp8g1xg4xoN0u8wUSuDEWkpMK      # 密码
-  bucketChunk: fusion-chunk
-  chunkSize: 104857600
-