application-dev.yml 3.2 KB

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