csc-szls-message-dev.yml 4.0 KB

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