csc-szls-system-manage-dev.yml 3.6 KB

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