csc-szls-business-dev.yml 3.5 KB

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