潘志宝
2024-12-23 2fe27eee95f46825fdeee267a42811a3069991c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
--- #################### 数据库相关配置 ####################
spring:
  autoconfigure:
    exclude:
      - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  #      - de.codecentric.boot.admin.server.config.AdminServerAutoConfiguration
  #      - de.codecentric.boot.admin.server.cloud.config.AdminServerDiscoveryAutoConfiguration
  #      - de.codecentric.boot.admin.server.ui.config.AdminServerUiAutoConfiguration
  #      - de.codecentric.boot.admin.client.config.SpringBootAdminClientAutoConfiguration
  datasource:
    druid:
      web-stat-filter:
        enabled: true
      stat-view-servlet:
        enabled: true
        allow:
        url-pattern: /druid/*
        login-username:
        login-password:
      filter:
        stat:
          enabled: true
          log-slow-sql: true
          slow-sql-millis: 100
          merge-sql: true
        wall:
          config:
            multi-statement-allow: true
    dynamic:
      druid:
        initial-size: 1
        min-idle: 1
        max-active: 20
        max-wait: 600000
        time-between-eviction-runs-millis: 60000
        min-evictable-idle-time-millis: 300000
        max-evictable-idle-time-millis: 900000
        validation-query: SELECT 1 FROM DUAL
        test-while-idle: true
        test-on-borrow: false
        test-on-return: false
      primary: master
      datasource:
        master:
          url: jdbc:mysql://172.16.8.100:3306/iailab_plat_system?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
          #          url: jdbc:mysql://127.0.0.1:3306/iailab-plat?useSSL=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
          #          url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro
          #          url: jdbc:oracle:thin:@127.0.0.1:1521:xe
          #          url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro
          #          url: jdbc:dm://10.211.55.4:5236?schema=RUOYI_VUE_PRO
          username: root
          password: 123456
        #          username: sa
        #          password: JSm:g(*%lU4ZAkz06cd52KqT3)i1?H7W
        #          username: SYSDBA
        #          password: SYSDBA
        slave:
          lazy: true
          url: jdbc:mysql://172.16.8.100:3306/iailab-plat?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
          username: root
          password: 123456
 
  redis:
    host: 172.16.8.100
    port: 6379
    database: 0
    password: 123456
 
--- #################### MQ 消息队列相关配置 ####################
rocketmq:
  name-server: 172.16.8.100:9876
 
spring:
  rabbitmq:
    host: 172.16.8.200
    port: 5672
    username: admin
    password: admin123
 
  kafka:
    bootstrap-servers: 172.16.8.100:9092
 
xxl:
  job:
    enabled: false
    admin:
      addresses: http://172.16.8.100:9090/xxl-job-admin
 
lock4j:
  acquire-timeout: 3000
  expire: 30000
 
--- #################### 监控相关配置 ####################
management:
  endpoints:
    web:
      base-path: /actuator
      exposure:
        include: '*'
 
spring:
  boot:
    admin:
      client:
        instance:
          service-host-type: IP
      context-path: /admin
 
logging:
  level:
    com.iailab.module.infra.dal.mysql: debug
    com.iailab.module.infra.dal.mysql.logger.ApiErrorLogMapper: INFO
    com.iailab.module.infra.dal.mysql.file.FileConfigMapper: INFO
 
iailab:
  env:
    tag: ${HOSTNAME}
  security:
    mock-enable: true
  access-log:
    enable: false