csc-szls-message-dev.yml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. hostname: 172.16.0.2 #地址
  2. spring:
  3. boot:
  4. admin:
  5. client:
  6. url: "http://${hostname}:9610"
  7. password: password
  8. username: user
  9. instance:
  10. prefer-ip: true
  11. redis:
  12. database: 0 #Redis数据库索引(默认为0)
  13. timeout: 5000ms # 连接超时时间(毫秒)
  14. host: ${hostname}
  15. port: 6679
  16. password: 123456 # Redis服务器连接密码(默认为空)
  17. jedis:
  18. pool:
  19. max-active: 8 # 连接池中的最大连接
  20. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  21. max-idle: 8 # 连接池中的最大空闲连接
  22. min-idle: 0 # 连接池中的最小空闲连接
  23. servlet:
  24. multipart:
  25. #单个文件上传大小
  26. max-file-size: 10MB
  27. #总数上传大小
  28. max-request-size: 100MB
  29. application:
  30. name: csc-szls-message #服务名
  31. # mysql配置
  32. datasource:
  33. driver-class-name: com.mysql.jdbc.Driver
  34. username: root
  35. password: 1qaz@WSX
  36. url: jdbc:mysql://101.36.160.140:21029/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
  37. hikari:
  38. minimum-idle: 5 #最小空闲连接数量
  39. idle-timeout: 180000 # 空闲连接存活最大时间,默认600000(10分钟)
  40. maximum-pool-size: 50 #连接池最大连接数,默认是10
  41. auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
  42. pool-name: MyHikariCP #连接池母子
  43. max-lifetime: 1800000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  44. connection-timeout: 60000 #数据库连接超时时间,默认30秒,即30000
  45. connection-test-query: SELECT 1
  46. quartz:
  47. job-store-type: jdbc #数据库方式
  48. jdbc:
  49. initialize-schema: never #不初始化表结构
  50. properties:
  51. org:
  52. quartz:
  53. scheduler:
  54. instanceId: AUTO #默认主机名和时间戳生成实例ID,可以是任何字符串,但对于所有调度程序来说,必须是唯一的 对应qrtz_scheduler_state INSTANCE_NAME字段
  55. #instanceName: clusteredScheduler #quartzScheduler
  56. jobStore:
  57. class: org.quartz.impl.jdbcjobstore.JobStoreTX #持久化配置
  58. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate #我们仅为数据库制作了特定于数据库的代理
  59. useProperties: false #以指示JDBCJobStore将JobDataMaps中的所有值都作为字符串,因此可以作为名称 - 值对存储而不是在BLOB列中以其序列化形式存储更多复杂的对象。从长远来看,这是更安全的,因为您避免了将非String类序列化为BLOB的类版本问题。
  60. tablePrefix: qrtz_ #数据库表前缀
  61. misfireThreshold: 60000 #在被认为“失火”之前,调度程序将“容忍”一个Triggers将其下一个启动时间通过的毫秒数。默认值(如果您在配置中未输入此属性)为60000(60秒)。
  62. clusterCheckinInterval: 5000 #设置此实例“检入”*与群集的其他实例的频率(以毫秒为单位)。影响检测失败实例的速度。
  63. isClustered: true #打开群集功能
  64. threadPool: #连接池
  65. class: org.quartz.simpl.SimpleThreadPool
  66. threadCount: 10
  67. threadPriority: 5
  68. threadsInheritContextClassLoaderOfInitializingThread: true
  69. # 配置rabbitmq的地址以及用户密码
  70. rabbitmq:
  71. host: ${hostname}
  72. port: 5672
  73. username: admin
  74. password: admin
  75. mybatis:
  76. mapper-locations: classpath:/mapper/*Mapper.xml
  77. # 配置mybatis-plus
  78. mybatis-plus:
  79. # 配置扫描xml
  80. mapper-locations: classpath:/mapper/*Mapper.xml
  81. # 实体扫描,多个package用逗号或者分号分隔
  82. type-aliases-package: com.unissoft.model
  83. ribbon:
  84. ReadTimeout: 10000
  85. ConnectTimeout: 10000
  86. MaxAutoRetries: 1
  87. MaxAutoRetriesNextServer: 2
  88. #熔断器开启
  89. feign:
  90. hystrix:
  91. enabled: true
  92. # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
  93. management:
  94. endpoints:
  95. web:
  96. exposure:
  97. include: '*'
  98. # 2.0开始,actuator默认不开放,所以要设置为开发
  99. endpoint:
  100. health:
  101. show-details: ALWAYS
  102. my-config:
  103. isUseSecurity: true #是否使用security权限
  104. projectCode: csc-szls-message #项目编码
  105. clientId: client_csc_szls_system_manage #客户端id
  106. logging:
  107. level:
  108. com.unissoft.mapper: DEBUG #包路径为mapper文件包路径
  109. minio:
  110. endpoint: http://${hostname}:9998 #图片服务器访问地址
  111. accesskey: minioAdmin #账号
  112. secretkey: minioAdmin1 #密码