123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- hostname: 172.16.0.2 #地址
- spring:
- # zip配置
- zipkin:
- #zipkin server的请求地址
- base-url: http://${hostname}:9611
- sender:
- # web 客户端将踪迹日志数据通过网络请求的方式传送到服务端,另外还有配置 # kafka/rabbit 客户端将踪迹日志数据传递到mq进行中转
- type: web
- sleuth:
- sampler:
- # 采样率 1 代表100%全部采集 ,默认0.1 代表10% 的请求踪迹数据会被采集
- probability: 1
- 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: 6379
- password: 123456 # Redis服务器连接密码(默认为空)
- jedis:
- pool:
- max-active: 8 # 连接池中的最大连接
- max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
- max-idle: 8 # 连接池中的最大空闲连接
- min-idle: 0 # 连
- # mysql配置
- datasource:
- driver-class-name: com.mysql.jdbc.Driver
- #username: ENC(b15HSDfvyJp0jr+lHlKQng==)
- #password: ENC(+FEzLSvFIV/MYL/wXCg93ijmLUseYzP3)
- username: root
- password: 1qaz@WSX
- url: jdbc:mysql://172.16.0.2:3306/csc-szls-test?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
- hikari:
- minimum-idle: 5 #最小空闲连接数量
- idle-timeout: 300000 # 空闲连接存活最大时间,默认600000(10分钟)
- maximum-pool-size: 50 #连接池最大连接数,默认是10
- auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
- pool-name: MyHikariCP9604 #连接池母子
- max-lifetime: 1800000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
- connection-timeout: 60000 #数据库连接超时时间,默认30秒,即30000
- connection-test-query: SELECT 1
- # 配置rabbitmq的地址以及用户密码
- rabbitmq:
- host: ${hostname}
- port: 5672
- username: admin
- password: admin
- mybatis:
- mapper-locations: classpath:/mapper/*Mapper.xml
- # 配置mybatis-plus
- mybatis-plus:
- # 配置扫描xml
- mapper-locations: classpath:/mapper/*Mapper.xml
- # 实体扫描,多个package用逗号或者分号分隔
- type-aliases-package: com.unissoft.model
- ribbon:
- ReadTimeout: 10000
- ConnectTimeout: 10000
- MaxAutoRetries: 1
- MaxAutoRetriesNextServer: 2
- #熔断器开启
- feign:
- client:
- config:
- default:
- connect-timeout: 9000
- read-timeout: 9000
- hystrix:
- enabled: true
- hystrix:
- command:
- default:
- execution:
- isolation:
- thread:
- timeoutInMilliseconds: 9000
- # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
- management:
- endpoints:
- web:
- exposure:
- include: '*'
- # 2.0开始,actuator默认不开放,所以要设置为开发
- endpoint:
- health:
- show-details: ALWAYS
- my-config:
- isUseSecurity: true #是否使用security权限
- projectCode: csc-szls-business #项目编码
- clientId: client_csc_szls_business #客户端id
- minio:
- endpoint: http://172.16.0.6:9000 #图片服务器访问地址
- accesskey: minioAdmin #账号
- secretkey: minioAdmin #密码
|