csc-szls-message-dev.yml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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(AC7MiPu2X266UaujLxVbnA==)
  45. password: ENC(PXh/ZVSBt39v0lYWqfRTFYMKJ2trNwCP)
  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: MyHikariCP9609 #连接池母子
  53. max-lifetime: 1800000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  54. connection-timeout: 60000 #数据库连接超时时间,默认30秒,即30000
  55. connection-test-query: SELECT 1
  56. quartz:
  57. job-store-type: jdbc #数据库方式
  58. jdbc:
  59. initialize-schema: never #不初始化表结构
  60. properties:
  61. org:
  62. quartz:
  63. scheduler:
  64. instanceId: AUTO #默认主机名和时间戳生成实例ID,可以是任何字符串,但对于所有调度程序来说,必须是唯一的 对应qrtz_scheduler_state INSTANCE_NAME字段
  65. #instanceName: clusteredScheduler #quartzScheduler
  66. jobStore:
  67. class: org.quartz.impl.jdbcjobstore.JobStoreTX #持久化配置
  68. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate #我们仅为数据库制作了特定于数据库的代理
  69. useProperties: false #以指示JDBCJobStore将JobDataMaps中的所有值都作为字符串,因此可以作为名称 - 值对存储而不是在BLOB列中以其序列化形式存储更多复杂的对象。从长远来看,这是更安全的,因为您避免了将非String类序列化为BLOB的类版本问题。
  70. tablePrefix: qrtz_ #数据库表前缀
  71. misfireThreshold: 60000 #在被认为“失火”之前,调度程序将“容忍”一个Triggers将其下一个启动时间通过的毫秒数。默认值(如果您在配置中未输入此属性)为60000(60秒)。
  72. clusterCheckinInterval: 5000 #设置此实例“检入”*与群集的其他实例的频率(以毫秒为单位)。影响检测失败实例的速度。
  73. isClustered: true #打开群集功能
  74. threadPool: #连接池
  75. class: org.quartz.simpl.SimpleThreadPool
  76. threadCount: 10
  77. threadPriority: 5
  78. threadsInheritContextClassLoaderOfInitializingThread: true
  79. # 配置rabbitmq的地址以及用户密码
  80. rabbitmq:
  81. host: ${hostname}
  82. port: 5672
  83. username: admin
  84. password: admin
  85. mybatis:
  86. mapper-locations: classpath:/mapper/*Mapper.xml
  87. # 配置mybatis-plus
  88. mybatis-plus:
  89. # 配置扫描xml
  90. mapper-locations: classpath:/mapper/*Mapper.xml
  91. # 实体扫描,多个package用逗号或者分号分隔
  92. type-aliases-package: com.unissoft.model
  93. ribbon:
  94. ReadTimeout: 10000
  95. ConnectTimeout: 10000
  96. MaxAutoRetries: 1
  97. MaxAutoRetriesNextServer: 2
  98. #熔断器开启
  99. feign:
  100. client:
  101. config:
  102. default:
  103. connect-timeout: 9000
  104. read-timeout: 9000
  105. hystrix:
  106. enabled: true
  107. hystrix:
  108. command:
  109. default:
  110. execution:
  111. isolation:
  112. thread:
  113. timeoutInMilliseconds: 9000
  114. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  115. management:
  116. endpoints:
  117. web:
  118. exposure:
  119. include: '*'
  120. # 2.0开始,actuator默认不开放,所以要设置为开发
  121. endpoint:
  122. health:
  123. show-details: ALWAYS
  124. my-config:
  125. isUseSecurity: true #是否使用security权限
  126. projectCode: csc-szls-message #项目编码
  127. clientId: client_csc-szls-message #客户端id
  128. logging:
  129. level:
  130. com.unissoft.mapper: DEBUG #包路径为mapper文件包路径
  131. minio:
  132. endpoint: http://${hostname}:9998 #图片服务器访问地址
  133. accesskey: minioAdmin #账号
  134. secretkey: minioAdmin1 #密码