| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- 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 # 连
- # mysql配置
- datasource:
- driver-class-name: com.mysql.jdbc.Driver
- username: root
- password: 1qaz@WSX
- url: jdbc:mysql://101.36.160.140:21029/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
- # 配置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:
- hystrix:
- enabled: true
- # 暴露监控端点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://${hostname}:9998 #图片服务器访问地址
- accesskey: minioAdmin #账号
- secretkey: minioAdmin1 #密码
|