作者 钟来

初始提交

... ... @@ -126,6 +126,7 @@
<artifactId>okhttp</artifactId>
</dependency>
</dependencies>
<build>
... ... @@ -151,7 +152,7 @@
生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前缀是lib/
-->
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.zhonglai.waibao.juheliaotian.mqtt.service.MqttServiceApplication</mainClass>
<mainClass>com.zhonglai.luhui.mqtt.MqttApplication</mainClass>
</manifest>
</archive>
</configuration>
... ...
... ... @@ -6,6 +6,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import javax.servlet.Filter;
@ComponentScan(basePackages = {
"com.zhonglai.luhui.mqtt.comm.config",
... ...
... ... @@ -42,7 +42,7 @@ mqtt:
#链接地址
broker: tcp://175.24.61.68:1883
#唯一标识
clientId: lh-mqtt-service-001
clientId: lh-mqtt-service-002
#订阅的topic
topics: "/2/+/+/+/ADD_POST,/2/+/+/+/ALL_POST,/2/+/+/+/DB_TOPIC_DISTRIBUTE,/2/+/+/+/GET,/2/+/+/+/online,/2/+/+/+/PUT_REQ"
topicconfig: "/{{roleid}}/{{username}}/{{clientid}}/{{payloadtype}}/{{topicType}}"
... ...