csc-szls-business-prod.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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: 6679
  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. url: jdbc:mysql://101.36.160.140:21029/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
  40. hikari:
  41. minimum-idle: 5 #最小空闲连接数量
  42. idle-timeout: 300000 # 空闲连接存活最大时间,默认600000(10分钟)
  43. maximum-pool-size: 50 #连接池最大连接数,默认是10
  44. auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
  45. pool-name: MyHikariCP9604 #连接池母子
  46. max-lifetime: 1800000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  47. connection-timeout: 60000 #数据库连接超时时间,默认30秒,即30000
  48. connection-test-query: SELECT 1
  49. # 配置rabbitmq的地址以及用户密码
  50. rabbitmq:
  51. host: ${hostname}
  52. port: 5672
  53. username: admin
  54. password: admin
  55. mybatis:
  56. mapper-locations: classpath:/mapper/*Mapper.xml
  57. # 配置mybatis-plus
  58. mybatis-plus:
  59. # 配置扫描xml
  60. mapper-locations: classpath:/mapper/*Mapper.xml
  61. # 实体扫描,多个package用逗号或者分号分隔
  62. type-aliases-package: com.unissoft.model
  63. ribbon:
  64. ReadTimeout: 10000
  65. ConnectTimeout: 10000
  66. MaxAutoRetries: 1
  67. MaxAutoRetriesNextServer: 2
  68. #熔断器开启
  69. feign:
  70. client:
  71. config:
  72. default:
  73. connect-timeout: 9000
  74. read-timeout: 9000
  75. hystrix:
  76. enabled: true
  77. hystrix:
  78. command:
  79. default:
  80. execution:
  81. isolation:
  82. thread:
  83. timeoutInMilliseconds: 9000
  84. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  85. management:
  86. endpoints:
  87. web:
  88. exposure:
  89. include: '*'
  90. # 2.0开始,actuator默认不开放,所以要设置为开发
  91. endpoint:
  92. health:
  93. show-details: ALWAYS
  94. my-config:
  95. isUseSecurity: true #是否使用security权限
  96. projectCode: csc-szls-business #项目编码
  97. clientId: client_csc_szls_business #客户端id
  98. minio:
  99. endpoint: http://${hostname}:9998 #图片服务器访问地址
  100. accesskey: minioAdmin #账号
  101. secretkey: minioAdmin1 #密码