Skip to content
Discussion options

You must be logged in to vote

请参考以下配置:

# 实例配置
instance:
  mqtt-client-1:
    host: tcp://youhost:1883
    qos: 1
    username: admin
    password: public
    autoReconnect: true
    cleanSession: true
    keepAlive: 60
    connectionTimeout: 30
    timeToWait: 60000
    # ssl配置
    ssl:
      enabled: true
      # 密钥路径,支持classpath:
      keyStore: /path/key.jks
      # 密钥类型
      keyStoreType: JKS
      # 密钥密码
      keyStorePassword: password

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by meggls2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants