server: port: 8083 servlet: context-path: /dev-api #context-path: / spring: datasource: dynamic: primary: db1 strict: false datasource: db1: driver-class-name: com.mysql.cj.jdbc.Driver type: com.zaxxer.hikari.HikariDataSource url: jdbc:mysql://localhost:3306/device_system?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=Asia/Shanghai&useSSL=false username: root password: 123456 db2: driver-class-name: com.mysql.cj.jdbc.Driver type: com.zaxxer.hikari.HikariDataSource url: jdbc:mysql://localhost:3306/image_analysis_zs?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=Asia/Shanghai&useSSL=false username: root password: 123456 #Hikari连接池配置 hikari: #池中维护的最小空闲连接数 minimum-idle: 5 #池中最大连接数,包括闲置和使用中的连接 maximum-pool-size: 15 #自动提交从池中返回的连接 auto-commit: true #连接允许在池中闲置的最长时间 idle-timeout: 30000 #连接池的用户定义名称,主要出现在日志记录和JMX管理控制台中以识别池和池配置 pool-name: DatebookHikariCP #池中连接最长生命周期 max-lifetime: 18000000 #等待来自池的连接的最大毫秒数 connection-timeout: 30000 #验证该连接是否是有效的查询语句 connection-test-query: select 1 from dual cloud: inetutils: timeout-seconds: 1000 config: enabled: false # redis 相关 redis: # 地址 host: 127.0.0.1 # 端口,默认为6379 port: 6379 # 数据库索引 database: 2 # 密码 password: 111111 # 连接超时时间 timeout: 10s lettuce: pool: # 连接池中的最小空闲连接 min-idle: 0 # 连接池中的最大空闲连接 max-idle: 8 # 连接池的最大数据库连接数 max-active: 8 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms # token配置 token: # 令牌自定义标识 header: Authorization # 令牌密钥 secret: abcdefghijklmnopqrstuvwxyz # 令牌有效期(默认30分钟) expireTime: 30 # 用户配置 user: password: # 密码最大错误次数 maxRetryCount: 5 # 密码锁定时间(默认10分钟) lockTime: 10 swagger: show: true analysis: url: http://192.168.1.123:9000/vi/syncrec upLoad: path: D:\\device_car\\analysis\\upload\\ url: http://localhost:85/upload/ netty: address: 192.168.3.20 port: 2404 eureka: instance: instance-id: ${spring.cloud.client.ip-address}:${server.port} prefer-ip-address: true client: healthcheck: enabled: true service-url: defaultZone: http://localhost:8084/eureka