| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- hostname: 172.16.0.2 #地址
- spring:
- boot:
- admin:
- client:
- url: "http://${hostname}:9610"
- password: password
- username: user
- instance:
- prefer-ip: true
- redis:
- database: 0 #Redis数据库索引(默认为0)
- timeout: 5000ms # 连接超时时间(毫秒)
- host: ${hostname}
- port: 6679
- password: 123456 # Redis服务器连接密码(默认为空)
- jedis:
- pool:
- max-active: 8 # 连接池中的最大连接
- max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
- max-idle: 8 # 连接池中的最大空闲连接
- min-idle: 0 # 连接池中的最小空闲连接
- datasource:
- driver-class-name: com.mysql.jdbc.Driver
- username: root
- password: 123456
- url: jdbc:mysql://101.36.160.140:10311/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
- # 配置rabbitmq的地址以及用户密码
- rabbitmq:
- host: ${hostname}
- port: 5672
- username: admin
- password: admin
- # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
- management:
- endpoints:
- web:
- exposure:
- include: '*'
- # 2.0开始,actuator默认不开放,所以要设置为开发
- endpoint:
- health:
- show-details: ALWAYS
- mybatis:
- mapper-locations: classpath:/mapper/*Mapper.xml
- my-config:
- clientId: client_oauth
- logging:
- level:
- com.unissoft.mapper: DEBUG #包路径为mapper文件包路径
|