application.yml 1.8 KB
##服务器配置
server:
  tomcat:
    uri-encoding: UTF-8
  port: 4883
  servlet:
    context-path: /

spring:
  messages:
    encoding: UTF-8
  mvc:
    #出现错误时, 直接抛出异常
    throw-exception-if-no-handler-found: true
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
    default-property-inclusion: non_null

  ##redic配置
  redis:
    database: 1
    # Redis服务器地址 写你的ip
    host: 47.112.163.61
    # Redis服务器连接端口
    port: 9527
    # Redis服务器连接密码(默认为空)
    password: Luhui586
    # 连接池最大连接数(使用负值表示没有限制  类似于mysql的连接池
    jedis:
      pool:
        max-active: 200
        # 连接池最大阻塞等待时间(使用负值表示没有限制) 表示连接池的链接拿完了 现在去申请需要等待的时间
        max-wait: -1
        # 连接池中的最大空闲连接
        max-idle: 10
        # 连接池中的最小空闲连接
        min-idle: 0
    # 连接超时时间(毫秒) 去链接redis服务端
    timeout: 6000

mqtt:
  #链接地址
  broker: tcp://175.24.61.68:1883
  #唯一标识
  clientId: ${random.uuid}
  #公司id
  roleid: 2
  mqtt_usernames: 6_WP
  #订阅的topic
  topics: ADD_POST,ALL_POST,DB_TOPIC_DISTRIBUTE,GET/+,online,PUT_REQ/+,READ_REQ/+
  sub_clientid: '863482065281251'
  topicconfig: "/{{roleid}}/{{username}}/{{clientid}}/{{payloadtype}}/{{topicType}}/{{messageid}}"
  top_return_map: '{"PUT":"PUT_REQ","READ":"READ_REQ"}'
  username: sysuser
  password: "!@#1qaz"
  client:
    #客户端操作时间
    operationTime: 10


sys:
  redis:
    field: "lh:mqttservice:"
  isText: false

#rocketmq配置信息
rocketmq:
  #nameservice服务器地址(多个以英文逗号隔开)
  name-server: 47.115.144.179:9876
  send-topic: lh-mqtt-service-deviceCommand-test
  send-tag: 1