| | |
| | | --- #################### 注册中心 + 配置中心相关配置 #################### |
| | | |
| | | spring: |
| | | cloud: |
| | | nacos: |
| | | server-addr: @nacos.server@ # Nacos 服务器地址 |
| | | username: @nacos.username@ |
| | | password: @nacos.password@ |
| | | discovery: # 【配置中心】配置项 |
| | | namespace: @profiles.active@ # 命名空间。这里使用 dev 开发环境 |
| | | group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP |
| | | metadata: |
| | | version: @nacos.metadata.version@ # 服务实例的版本号,可用于灰度发布 |
| | | config: # 【注册中心】配置项 |
| | | namespace: @profiles.active@ # 命名空间。这里使用 dev 开发环境 |
| | | group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP |
| | | |
| | | --- #################### 数据库相关配置 #################### |
| | | spring: |
| | | autoconfigure: |
| | | exclude: |
| | | - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
| | | datasource: |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | url: jdbc:mysql://127.0.0.1:3306/iailab_ntt_model?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: 123456 |
| | | initial-size: 10 |
| | | max-active: 100 |
| | | min-idle: 10 |
| | | max-wait: 60000 |
| | | pool-prepared-statements: true |
| | | max-pool-prepared-statement-per-connection-size: 20 |
| | | time-between-eviction-runs-millis: 60000 |
| | | min-evictable-idle-time-millis: 300000 |
| | | #validationQuery是用来验证数据库连接的查询语句,这个查询语句必须是至少返回一条结果的SELECT语句。每种数据库都有各自的验证语句 |
| | | #validation-query: select 1 from sysibm.sysdummy1 |
| | | test-while-idle: true |
| | | test-on-borrow: false |
| | | test-on-return: false |
| | | web-stat-filter: |
| | | enabled: true |
| | | stat-view-servlet: |
| | | enabled: true |
| | | allow: |
| | | url-pattern: /druid/* |
| | | #login-username: admin |
| | | #login-password: admin |
| | | login-username: |
| | | login-password: |
| | | filter: |
| | | stat: |
| | | enabled: true |
| | | log-slow-sql: true |
| | | slow-sql-millis: 1000 |
| | | merge-sql: false |
| | | 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://127.0.0.1:3306/iailab_expert_tenant_zjgt?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true |
| | | url: jdbc:mysql://127.0.0.1:3306/iailab_expert_master?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true |
| | | username: root |
| | | password: 123456 |
| | | |
| | | redis: |
| | | database: 0 |
| | | host: 127.0.0.1 |
| | | port: 6379 |
| | | password: # 密码(默认为空) |
| | | timeout: 6000ms # 连接超时时长(毫秒) |
| | | jedis: |
| | | pool: |
| | | max-active: 1000 # 连接池最大连接数(使用负值表示没有限制) |
| | | max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制) |
| | | max-idle: 10 # 连接池中的最大空闲连接 |
| | | min-idle: 5 # 连接池中的最小空闲连接 |
| | | database: 0 |
| | | # password: 123456 |
| | | |
| | | ##多数据源的配置 |
| | | dynamic: |
| | | datasource: |
| | | slave1: |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: 123456 |
| | | oadp: |
| | | domain: http://172.16.1.148:6010 |
| | | |
| | | influx-db: |
| | | org: IAILab |
| | | bucket: whs_data |
| | | token: 0p9sXgDxo4hyZ-hxhV7behQkto-8rD5GD0mTKb66_FHaDn_NoE1zusCP8fJznwfTdpttAjj7bEOeNrpt7cbRQw== |
| | | url: http://localhost:8086 |
| | | |
| | | iems: |
| | | upload: C:/DLUT/nginx/static/knowledge |
| | | |
| | | data: |
| | | domain: http://127.0.0.1:8980 |
| | | |
| | | iailab: |
| | | is-dev: y |
| | | |
| | | mpk: |
| | | bak-file-path: D:\DLUT\mpkBakFile |
| | | bak-resources: D:\DLUT\mpkResources |
| | | model-file-path: D:\DLUT\MDK\Model\miail\ |