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