瀏覽代碼

权限、后结构化、消息、网关redis配置调整;数据库基础配置调整

rengb 3 年之前
父節點
當前提交
393355b134
共有 31 個文件被更改,包括 100 次插入373 次删除
  1. 0 7
      config-center/src/main/resources/shared/gateway-service-debug.yml
  2. 0 7
      config-center/src/main/resources/shared/gateway-service-inner.yml
  3. 0 7
      config-center/src/main/resources/shared/gateway-service-local.yml
  4. 0 7
      config-center/src/main/resources/shared/gateway-service-outer.yml
  5. 0 7
      config-center/src/main/resources/shared/gateway-service-test.yml
  6. 0 7
      config-center/src/main/resources/shared/message-service-debug.yml
  7. 0 7
      config-center/src/main/resources/shared/message-service-inner.yml
  8. 0 7
      config-center/src/main/resources/shared/message-service-local.yml
  9. 0 7
      config-center/src/main/resources/shared/message-service-outer.yml
  10. 0 7
      config-center/src/main/resources/shared/message-service-test.yml
  11. 5 7
      config-center/src/main/resources/shared/security-center-debug.yml
  12. 5 7
      config-center/src/main/resources/shared/security-center-inner.yml
  13. 5 7
      config-center/src/main/resources/shared/security-center-local.yml
  14. 5 7
      config-center/src/main/resources/shared/security-center-outer.yml
  15. 5 7
      config-center/src/main/resources/shared/security-center-test.yml
  16. 0 7
      config-center/src/main/resources/shared/structure-center-debug.yml
  17. 0 7
      config-center/src/main/resources/shared/structure-center-inner.yml
  18. 0 7
      config-center/src/main/resources/shared/structure-center-local.yml
  19. 0 7
      config-center/src/main/resources/shared/structure-center-outer.yml
  20. 0 7
      config-center/src/main/resources/shared/structure-center-test.yml
  21. 0 46
      dblayer-mbg/src/main/resources/application-debug.yml
  22. 0 46
      dblayer-mbg/src/main/resources/application-inner.yml
  23. 0 43
      dblayer-mbg/src/main/resources/application-local.yml
  24. 0 46
      dblayer-mbg/src/main/resources/application-outer.yml
  25. 0 46
      dblayer-mbg/src/main/resources/application-test.yml
  26. 42 0
      dblayer-mbg/src/main/resources/application.yml
  27. 8 0
      gateway-service/src/main/resources/bootstrap.yml
  28. 1 1
      message-service/pom.xml
  29. 8 0
      message-service/src/main/resources/bootstrap.yml
  30. 8 5
      security-center/src/main/resources/bootstrap.yml
  31. 8 0
      structure-center/src/main/resources/bootstrap.yml

+ 0 - 7
config-center/src/main/resources/shared/gateway-service-debug.yml

@@ -4,12 +4,5 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: true

+ 0 - 7
config-center/src/main/resources/shared/gateway-service-inner.yml

@@ -4,12 +4,5 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: false

+ 0 - 7
config-center/src/main/resources/shared/gateway-service-local.yml

@@ -4,12 +4,5 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: true

+ 0 - 7
config-center/src/main/resources/shared/gateway-service-outer.yml

@@ -4,12 +4,5 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: false

+ 0 - 7
config-center/src/main/resources/shared/gateway-service-test.yml

@@ -4,12 +4,5 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: true

+ 0 - 7
config-center/src/main/resources/shared/message-service-debug.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
   rabbitmq:
     host: 192.168.2.237
     port: 5672

+ 0 - 7
config-center/src/main/resources/shared/message-service-inner.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
   rabbitmq:
     host: 192.168.2.237
     port: 5672

+ 0 - 7
config-center/src/main/resources/shared/message-service-local.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
   rabbitmq:
     host: 192.168.2.237
     port: 5672

+ 0 - 7
config-center/src/main/resources/shared/message-service-outer.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
   rabbitmq:
     host: 192.168.2.237
     port: 5672

+ 0 - 7
config-center/src/main/resources/shared/message-service-test.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
   rabbitmq:
     host: 192.168.2.237
     port: 5672

+ 5 - 7
config-center/src/main/resources/shared/security-center-debug.yml

@@ -4,12 +4,10 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
+  datasource:
+    druid:
+      url: jdbc:mysql://192.168.2.237:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+      username: root
+      password: lantone
 
 swagger.show: true

+ 5 - 7
config-center/src/main/resources/shared/security-center-inner.yml

@@ -4,12 +4,10 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
+  datasource:
+    druid:
+      url: jdbc:mysql://192.168.2.237:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+      username: root
+      password: lantone
 
 swagger.show: false

+ 5 - 7
config-center/src/main/resources/shared/security-center-local.yml

@@ -4,12 +4,10 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
+  datasource:
+    druid:
+      url: jdbc:mysql://192.168.2.237:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+      username: root
+      password: lantone
 
 swagger.show: true

+ 5 - 7
config-center/src/main/resources/shared/security-center-outer.yml

@@ -4,12 +4,10 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
+  datasource:
+    druid:
+      url: jdbc:mysql://192.168.2.237:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+      username: root
+      password: lantone
 
 swagger.show: false

+ 5 - 7
config-center/src/main/resources/shared/security-center-test.yml

@@ -4,12 +4,10 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
+  datasource:
+    druid:
+      url: jdbc:mysql://192.168.2.237:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
+      username: root
+      password: lantone
 
 swagger.show: true

+ 0 - 7
config-center/src/main/resources/shared/structure-center-debug.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: true
 

+ 0 - 7
config-center/src/main/resources/shared/structure-center-inner.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: false
 

+ 0 - 7
config-center/src/main/resources/shared/structure-center-local.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: true
 

+ 0 - 7
config-center/src/main/resources/shared/structure-center-outer.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: false
 

+ 0 - 7
config-center/src/main/resources/shared/structure-center-test.yml

@@ -4,13 +4,6 @@ spring:
     host: 192.168.2.237 # Redis服务器地址
     port: 63791 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
     password: emrais # Redis服务器连接密码(默认为空)
-    jedis:
-      pool:
-        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
-        max-idle: 5 # 连接池中的最大空闲连接
-        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
-        min-idle: 0 # 连接池中的最小空闲连接
-    timeout: 20000 # 连接超时时间(毫秒)
 
 swagger.show: true
 

+ 0 - 46
dblayer-mbg/src/main/resources/application-debug.yml

@@ -1,46 +0,0 @@
-spring:
-  datasource:
-    druid:
-      driver-class-name: com.mysql.cj.jdbc.Driver
-      platform: mysql
-      url: jdbc:mysql://192.168.2.237:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
-      username: root
-      password: lantone
-      # 连接池的配置信息
-      # 初始化大小,最小,最大
-      initialSize: 5
-      minIdle: 5
-      maxActive: 20
-      # 配置获取连接等待超时的时间
-      maxWait: 60000
-      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
-      timeBetweenEvictionRunsMillis: 60000
-      # 配置一个连接在池中最小生存的时间,单位是毫秒
-      minEvictableIdleTimeMillis: 300000
-      validationQuery: SELECT 1 FROM DUAL
-      testWhileIdle: true
-      testOnBorrow: false
-      testOnReturn: false
-      # 打开PSCache,并且指定每个连接上PSCache的大小
-      poolPreparedStatements: true
-      maxPoolPreparedStatementPerConnectionSize: 20
-      # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
-      filters.commons-log.connection-logger-name: wall,log4j
-      filter:
-        stat:
-          enabled: true
-          mergeSql: true
-          log-slow-sql: true
-          slow-sql-millis: 2000
-      #监控配置
-      web-stat-filter:
-        enabled: true
-        url-pattern: /*
-        exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
-      # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
-      stat-view-servlet:
-        enabled: true
-        url-pattern: /druid/*
-        reset-enable: false
-        login-username: root
-        login-password: root

+ 0 - 46
dblayer-mbg/src/main/resources/application-inner.yml

@@ -1,46 +0,0 @@
-spring:
-  datasource:
-    druid:
-      driver-class-name: com.mysql.cj.jdbc.Driver
-      platform: mysql
-      url: jdbc:mysql://192.168.2.236:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
-      username: root
-      password: lantone
-      # 连接池的配置信息
-      # 初始化大小,最小,最大
-      initialSize: 5
-      minIdle: 5
-      maxActive: 20
-      # 配置获取连接等待超时的时间
-      maxWait: 60000
-      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
-      timeBetweenEvictionRunsMillis: 60000
-      # 配置一个连接在池中最小生存的时间,单位是毫秒
-      minEvictableIdleTimeMillis: 300000
-      validationQuery: SELECT 1 FROM DUAL
-      testWhileIdle: true
-      testOnBorrow: false
-      testOnReturn: false
-      # 打开PSCache,并且指定每个连接上PSCache的大小
-      poolPreparedStatements: true
-      maxPoolPreparedStatementPerConnectionSize: 20
-      # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
-      filters.commons-log.connection-logger-name: wall,log4j
-      filter:
-        stat:
-          enabled: true
-          mergeSql: true
-          log-slow-sql: true
-          slow-sql-millis: 2000
-      #监控配置
-      web-stat-filter:
-        enabled: true
-        url-pattern: /*
-        exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
-      # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
-      stat-view-servlet:
-        enabled: true
-        url-pattern: /druid/*
-        reset-enable: false
-        login-username: root
-        login-password: root

+ 0 - 43
dblayer-mbg/src/main/resources/application-local.yml

@@ -1,43 +0,0 @@
-spring:
-  datasource:
-    druid:
-      driver-class-name: com.mysql.cj.jdbc.Driver
-      platform: mysql
-      # 连接池的配置信息
-      # 初始化大小,最小,最大
-      initialSize: 5
-      minIdle: 5
-      maxActive: 20
-      # 配置获取连接等待超时的时间
-      maxWait: 60000
-      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
-      timeBetweenEvictionRunsMillis: 60000
-      # 配置一个连接在池中最小生存的时间,单位是毫秒
-      minEvictableIdleTimeMillis: 300000
-      validationQuery: SELECT 1 FROM DUAL
-      testWhileIdle: true
-      testOnBorrow: false
-      testOnReturn: false
-      # 打开PSCache,并且指定每个连接上PSCache的大小
-      poolPreparedStatements: true
-      maxPoolPreparedStatementPerConnectionSize: 20
-      # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
-      filters.commons-log.connection-logger-name: wall,log4j
-      filter:
-        stat:
-          enabled: true
-          mergeSql: true
-          log-slow-sql: true
-          slow-sql-millis: 2000
-      #监控配置
-      web-stat-filter:
-        enabled: true
-        url-pattern: /*
-        exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
-      # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
-      stat-view-servlet:
-        enabled: true
-        url-pattern: /druid/*
-        reset-enable: false
-        login-username: root
-        login-password: root

+ 0 - 46
dblayer-mbg/src/main/resources/application-outer.yml

@@ -1,46 +0,0 @@
-spring:
-  datasource:
-    druid:
-      driver-class-name: com.mysql.cj.jdbc.Driver
-      platform: mysql
-      url: jdbc:mysql://192.168.2.236:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
-      username: root
-      password: lantone
-      # 连接池的配置信息
-      # 初始化大小,最小,最大
-      initialSize: 5
-      minIdle: 5
-      maxActive: 20
-      # 配置获取连接等待超时的时间
-      maxWait: 60000
-      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
-      timeBetweenEvictionRunsMillis: 60000
-      # 配置一个连接在池中最小生存的时间,单位是毫秒
-      minEvictableIdleTimeMillis: 300000
-      validationQuery: SELECT 1 FROM DUAL
-      testWhileIdle: true
-      testOnBorrow: false
-      testOnReturn: false
-      # 打开PSCache,并且指定每个连接上PSCache的大小
-      poolPreparedStatements: true
-      maxPoolPreparedStatementPerConnectionSize: 20
-      # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
-      filters.commons-log.connection-logger-name: wall,log4j
-      filter:
-        stat:
-          enabled: true
-          mergeSql: true
-          log-slow-sql: true
-          slow-sql-millis: 2000
-      #监控配置
-      web-stat-filter:
-        enabled: true
-        url-pattern: /*
-        exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
-      # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
-      stat-view-servlet:
-        enabled: true
-        url-pattern: /druid/*
-        reset-enable: false
-        login-username: root
-        login-password: root

+ 0 - 46
dblayer-mbg/src/main/resources/application-test.yml

@@ -1,46 +0,0 @@
-spring:
-  datasource:
-    druid:
-      driver-class-name: com.mysql.cj.jdbc.Driver
-      platform: mysql
-      url: jdbc:mysql://192.168.2.236:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
-      username: root
-      password: lantone
-      # 连接池的配置信息
-      # 初始化大小,最小,最大
-      initialSize: 5
-      minIdle: 5
-      maxActive: 20
-      # 配置获取连接等待超时的时间
-      maxWait: 60000
-      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
-      timeBetweenEvictionRunsMillis: 60000
-      # 配置一个连接在池中最小生存的时间,单位是毫秒
-      minEvictableIdleTimeMillis: 300000
-      validationQuery: SELECT 1 FROM DUAL
-      testWhileIdle: true
-      testOnBorrow: false
-      testOnReturn: false
-      # 打开PSCache,并且指定每个连接上PSCache的大小
-      poolPreparedStatements: true
-      maxPoolPreparedStatementPerConnectionSize: 20
-      # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
-      filters.commons-log.connection-logger-name: wall,log4j
-      filter:
-        stat:
-          enabled: true
-          mergeSql: true
-          log-slow-sql: true
-          slow-sql-millis: 2000
-      #监控配置
-      web-stat-filter:
-        enabled: true
-        url-pattern: /*
-        exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
-      # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
-      stat-view-servlet:
-        enabled: true
-        url-pattern: /druid/*
-        reset-enable: false
-        login-username: root
-        login-password: root

+ 42 - 0
dblayer-mbg/src/main/resources/application.yml

@@ -4,6 +4,48 @@ spring:
     time-zone: GMT+8
     serialization:
       write-dates-as-timestamps: false
+  datasource:
+    druid:
+      driver-class-name: com.mysql.cj.jdbc.Driver
+      platform: mysql
+      # 连接池的配置信息
+      # 初始化大小,最小,最大
+      initialSize: 5
+      minIdle: 5
+      maxActive: 20
+      # 配置获取连接等待超时的时间
+      maxWait: 60000
+      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
+      timeBetweenEvictionRunsMillis: 60000
+      # 配置一个连接在池中最小生存的时间,单位是毫秒
+      minEvictableIdleTimeMillis: 300000
+      validationQuery: SELECT 1 FROM DUAL
+      testWhileIdle: true
+      testOnBorrow: false
+      testOnReturn: false
+      # 打开PSCache,并且指定每个连接上PSCache的大小
+      poolPreparedStatements: true
+      maxPoolPreparedStatementPerConnectionSize: 20
+      # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
+      filters.commons-log.connection-logger-name: wall,log4j
+      filter:
+        stat:
+          enabled: true
+          mergeSql: true
+          log-slow-sql: true
+          slow-sql-millis: 2000
+      #监控配置
+      web-stat-filter:
+        enabled: true
+        url-pattern: /*
+        exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
+      # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
+      stat-view-servlet:
+        enabled: true
+        url-pattern: /druid/*
+        reset-enable: false
+        login-username: root
+        login-password: root
 
 mybatis-plus:
   mapper-locations: classpath*:/mapper/**/*Mapper.xml

+ 8 - 0
gateway-service/src/main/resources/bootstrap.yml

@@ -43,6 +43,14 @@ spring:
       discovery:
         enabled: true
         service-id: config-center
+  redis:
+    jedis:
+      pool:
+        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
+        max-idle: 5 # 连接池中的最大空闲连接
+        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
+        min-idle: 0 # 连接池中的最小空闲连接
+    timeout: 20000 # 连接超时时间(毫秒)
   profiles:
     active: local
 

+ 1 - 1
message-service/pom.xml

@@ -17,7 +17,7 @@
     <dependencies>
         <dependency>
             <groupId>com.lantone</groupId>
-            <artifactId>dblayer-mbg</artifactId>
+            <artifactId>common</artifactId>
         </dependency>
         <dependency>
             <groupId>org.springframework.cloud</groupId>

+ 8 - 0
message-service/src/main/resources/bootstrap.yml

@@ -11,6 +11,14 @@ spring:
       discovery:
         enabled: true
         service-id: config-center
+  redis:
+    jedis:
+      pool:
+        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
+        max-idle: 5 # 连接池中的最大空闲连接
+        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
+        min-idle: 0 # 连接池中的最小空闲连接
+    timeout: 20000 # 连接超时时间(毫秒)
   profiles:
     active: local
 

+ 8 - 5
security-center/src/main/resources/bootstrap.yml

@@ -9,13 +9,16 @@ spring:
       discovery:
         enabled: true
         service-id: config-center
+  redis:
+    jedis:
+      pool:
+        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
+        max-idle: 5 # 连接池中的最大空闲连接
+        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
+        min-idle: 0 # 连接池中的最小空闲连接
+    timeout: 20000 # 连接超时时间(毫秒)
   profiles:
     active: local
-  datasource:
-    druid:
-      url: jdbc:mysql://192.168.2.237:3306/emrais?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
-      username: root
-      password: lantone
 
 eureka:
   client:

+ 8 - 0
structure-center/src/main/resources/bootstrap.yml

@@ -9,6 +9,14 @@ spring:
       discovery:
         enabled: true
         service-id: config-center
+  redis:
+    jedis:
+      pool:
+        max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
+        max-idle: 5 # 连接池中的最大空闲连接
+        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
+        min-idle: 0 # 连接池中的最小空闲连接
+    timeout: 20000 # 连接超时时间(毫秒)
   profiles:
     active: local
   servlet: