application.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #开发环境
  2. server:
  3. port: 8080
  4. spring:
  5. redis:
  6. database: 0
  7. host: 47.111.81.118
  8. #host: 172.16.120.184
  9. lettuce:
  10. pool:
  11. max-active: 8 #最大连接数据库连接数,设 0 为没有限制
  12. max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
  13. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  14. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  15. shutdown-timeout: 100ms
  16. password: uskyredis
  17. port: 6379
  18. jackson:
  19. time-zone: GMT+8
  20. application:
  21. name: JX_Cover
  22. datasource:
  23. driver-class-name: com.mysql.cj.jdbc.Driver
  24. druid:
  25. initialSize: 5
  26. minIdle: 5
  27. maxActive: 20
  28. maxWait: 60000
  29. timeBetweenEvictionRunsMillis: 60000
  30. minEvictableIdleTimeMillis: 300000
  31. validationQuery: SELECT 1 FROM DUAL
  32. testWhileIdle: true
  33. testOnBorrow: false
  34. testOnReturn: false
  35. poolPreparedStatements: true
  36. aopPatterns: com.usky.*
  37. # filters: stat,slf4j
  38. maxPoolPreparedStatementPerConnectionSize: 20
  39. useGlobalDataSourceStat: false
  40. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
  41. db-type: com.alibaba.druid.pool.DruidDataSource
  42. url: jdbc:mysql://47.111.81.118:3306/jx_cover?useunicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
  43. username: root
  44. password: Yt2021
  45. jpa:
  46. database-platform: org.hibernate.dialect.MySQLDialect
  47. hibernate:
  48. ddl-auto: update
  49. database: mysql
  50. show-sql: true
  51. open-in-view: false #懒加载时使用,建议false
  52. swagger:
  53. enable: true
  54. cron:
  55. #测试每隔十秒执行一次定时任务
  56. test: 0/10 * * * * ?
  57. #每一小时入库一次视频数据
  58. rk: 0 0 0/12 * * ?
  59. #请求每十秒执行一次
  60. req: 0/10 * * * * ?
  61. sms:
  62. accessKeyID: LTAI5tCTtstCUtCPBrmFAUCk # 你自己的accessKeyId
  63. accessKeySecret: V6X2hMOEbepkTPdjeqjESs3Pc0jgPk # 你自己的AccessKeySecret
  64. signName: 上海永天科技股份有限公司 # 签名名称
  65. #verifyCodeTemplate: SMS_164095840 # 模板名称
  66. verifyCodeTemplate: SMS_220385321 # 模板名称
  67. domain: dysmsapi.aliyuncs.com # 域名
  68. action: SendSMS # API类型,发送短信
  69. version: 2017-05-25 # API版本,固定值
  70. regionID: cn-hangzhou # 区域id
  71. mqtt:
  72. config:
  73. channel1:
  74. consumer-enable: true
  75. producer-enable: true
  76. url: [tcp://124.71.175.91:1883]
  77. # url: [tcp://47.98.201.73:1883]
  78. topics: [/2usky/10012/861050040560669/#,/2usky/10012/861050040560321/#,/2usky/10012/861050040533286/#]
  79. qos: [0,0,0]
  80. username: wjzn2021
  81. password: wjzn2021
  82. #username: usky
  83. # password: usky
  84. timeout: 60
  85. kep-alive-interval: 60
  86. async: true
  87. client-id-append-ip: true
  88. consumer-client-id: consumer_client_test1
  89. producer-client-id: producer_client_test1
  90. consumer-will:
  91. qos: 1
  92. topic: will_topic
  93. payload: '{"id": "consumer_client_test1"}'
  94. retained: false
  95. producer-will:
  96. qos: 1
  97. topic: will_topic
  98. payload: '{"id": "producer_client_test1"}'
  99. retained: false