csc-szls-business-dev.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. hostname: 172.16.0.2 #地址
  2. spring:
  3. # zip配置
  4. zipkin:
  5. #zipkin server的请求地址
  6. base-url: http://${hostname}:9611
  7. sender:
  8. # web 客户端将踪迹日志数据通过网络请求的方式传送到服务端,另外还有配置 # kafka/rabbit 客户端将踪迹日志数据传递到mq进行中转
  9. type: web
  10. sleuth:
  11. sampler:
  12. # 采样率 1 代表100%全部采集 ,默认0.1 代表10% 的请求踪迹数据会被采集
  13. probability: 1
  14. boot:
  15. admin:
  16. client:
  17. url: "http://${hostname}:9610"
  18. password: password
  19. username: user
  20. instance:
  21. prefer-ip: true
  22. redis:
  23. database: 0 #Redis数据库索引(默认为0)
  24. timeout: 5000ms # 连接超时时间(毫秒)
  25. host: ${hostname}
  26. port: 6379
  27. password: 123456 # Redis服务器连接密码(默认为空)
  28. jedis:
  29. pool:
  30. max-active: 8 # 连接池中的最大连接
  31. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  32. max-idle: 8 # 连接池中的最大空闲连接
  33. min-idle: 0 # 连
  34. # mysql配置
  35. datasource:
  36. driver-class-name: com.mysql.jdbc.Driver
  37. #username: ENC(b15HSDfvyJp0jr+lHlKQng==)
  38. #password: ENC(+FEzLSvFIV/MYL/wXCg93ijmLUseYzP3)
  39. username: root
  40. password: 1qaz@WSX
  41. url: jdbc:mysql://172.16.0.2:3306/csc-szls-test?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
  42. hikari:
  43. minimum-idle: 5 #最小空闲连接数量
  44. idle-timeout: 300000 # 空闲连接存活最大时间,默认600000(10分钟)
  45. maximum-pool-size: 50 #连接池最大连接数,默认是10
  46. auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
  47. pool-name: MyHikariCP9604 #连接池母子
  48. max-lifetime: 1800000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  49. connection-timeout: 60000 #数据库连接超时时间,默认30秒,即30000
  50. connection-test-query: SELECT 1
  51. # 配置rabbitmq的地址以及用户密码
  52. rabbitmq:
  53. host: ${hostname}
  54. port: 5672
  55. username: admin
  56. password: admin
  57. mybatis:
  58. mapper-locations: classpath:/mapper/*Mapper.xml
  59. # 配置mybatis-plus
  60. mybatis-plus:
  61. # 配置扫描xml
  62. mapper-locations: classpath:/mapper/*Mapper.xml
  63. # 实体扫描,多个package用逗号或者分号分隔
  64. type-aliases-package: com.unissoft.model
  65. ribbon:
  66. ReadTimeout: 10000
  67. ConnectTimeout: 10000
  68. MaxAutoRetries: 1
  69. MaxAutoRetriesNextServer: 2
  70. #熔断器开启
  71. feign:
  72. client:
  73. config:
  74. default:
  75. connect-timeout: 9000
  76. read-timeout: 9000
  77. hystrix:
  78. enabled: true
  79. hystrix:
  80. command:
  81. default:
  82. execution:
  83. isolation:
  84. thread:
  85. timeoutInMilliseconds: 9000
  86. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  87. management:
  88. endpoints:
  89. web:
  90. exposure:
  91. include: '*'
  92. # 2.0开始,actuator默认不开放,所以要设置为开发
  93. endpoint:
  94. health:
  95. show-details: ALWAYS
  96. my-config:
  97. isUseSecurity: true #是否使用security权限
  98. projectCode: csc-szls-business #项目编码
  99. clientId: client_csc_szls_business #客户端id
  100. minio:
  101. endpoint: http://172.16.0.6:9000 #图片服务器访问地址
  102. accesskey: minioAdmin #账号
  103. secretkey: minioAdmin #密码