csc-szls-oauth-dev.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #hostname: 172.16.0.2 #地址
  2. hostname: 172.16.0.6 #地址
  3. spring:
  4. # zip配置
  5. zipkin:
  6. #zipkin server的请求地址
  7. base-url: http://${hostname}:9611
  8. sender:
  9. # web 客户端将踪迹日志数据通过网络请求的方式传送到服务端,另外还有配置 # kafka/rabbit 客户端将踪迹日志数据传递到mq进行中转
  10. type: web
  11. sleuth:
  12. sampler:
  13. # 采样率 1 代表100%全部采集 ,默认0.1 代表10% 的请求踪迹数据会被采集
  14. probability: 1
  15. boot:
  16. admin:
  17. client:
  18. url: "http://${hostname}:9610"
  19. password: password
  20. username: user
  21. instance:
  22. prefer-ip: true
  23. redis:
  24. database: 0 #Redis数据库索引(默认为0)
  25. timeout: 5000ms # 连接超时时间(毫秒)
  26. host: ${hostname}
  27. port: 6679
  28. password: 123456 # Redis服务器连接密码(默认为空)
  29. jedis:
  30. pool:
  31. max-active: 8 # 连接池中的最大连接
  32. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  33. max-idle: 8 # 连接池中的最大空闲连接
  34. min-idle: 0 # 连接池中的最小空闲连接
  35. datasource:
  36. driver-class-name: com.mysql.jdbc.Driver
  37. username: ENC(q5wiYYPVP9xyk87kutjk5A==)
  38. password: ENC(JYQaiGDZUCrtU/NgO2YYaiUeqOQ1fqkE)
  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: MyHikariCP9601 #连接池母子
  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. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  56. management:
  57. endpoints:
  58. web:
  59. exposure:
  60. include: '*'
  61. # 2.0开始,actuator默认不开放,所以要设置为开发
  62. endpoint:
  63. health:
  64. show-details: ALWAYS
  65. #熔断器开启
  66. feign:
  67. client:
  68. config:
  69. default:
  70. connect-timeout: 9000
  71. read-timeout: 9000
  72. hystrix:
  73. enabled: true
  74. hystrix:
  75. command:
  76. default:
  77. execution:
  78. isolation:
  79. thread:
  80. timeoutInMilliseconds: 9000
  81. mybatis:
  82. mapper-locations: classpath:/mapper/*Mapper.xml
  83. my-config:
  84. clientId: client_oauth
  85. logging:
  86. level:
  87. com.unissoft.mapper: DEBUG #包路径为mapper文件包路径