正在显示
3 个修改的文件
包含
5 行增加
和
2 行删除
| @@ -126,6 +126,7 @@ | @@ -126,6 +126,7 @@ | ||
| 126 | <artifactId>okhttp</artifactId> | 126 | <artifactId>okhttp</artifactId> |
| 127 | </dependency> | 127 | </dependency> |
| 128 | 128 | ||
| 129 | + | ||
| 129 | </dependencies> | 130 | </dependencies> |
| 130 | 131 | ||
| 131 | <build> | 132 | <build> |
| @@ -151,7 +152,7 @@ | @@ -151,7 +152,7 @@ | ||
| 151 | 生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前缀是lib/ | 152 | 生成的manifest中classpath的前缀,因为要把第三方jar放到lib目录下,所以classpath的前缀是lib/ |
| 152 | --> | 153 | --> |
| 153 | <classpathPrefix>lib/</classpathPrefix> | 154 | <classpathPrefix>lib/</classpathPrefix> |
| 154 | - <mainClass>com.zhonglai.waibao.juheliaotian.mqtt.service.MqttServiceApplication</mainClass> | 155 | + <mainClass>com.zhonglai.luhui.mqtt.MqttApplication</mainClass> |
| 155 | </manifest> | 156 | </manifest> |
| 156 | </archive> | 157 | </archive> |
| 157 | </configuration> | 158 | </configuration> |
| @@ -6,6 +6,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; | @@ -6,6 +6,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
| 6 | import org.springframework.boot.builder.SpringApplicationBuilder; | 6 | import org.springframework.boot.builder.SpringApplicationBuilder; |
| 7 | import org.springframework.context.annotation.ComponentScan; | 7 | import org.springframework.context.annotation.ComponentScan; |
| 8 | 8 | ||
| 9 | +import javax.servlet.Filter; | ||
| 10 | + | ||
| 9 | 11 | ||
| 10 | @ComponentScan(basePackages = { | 12 | @ComponentScan(basePackages = { |
| 11 | "com.zhonglai.luhui.mqtt.comm.config", | 13 | "com.zhonglai.luhui.mqtt.comm.config", |
| @@ -42,7 +42,7 @@ mqtt: | @@ -42,7 +42,7 @@ mqtt: | ||
| 42 | #链接地址 | 42 | #链接地址 |
| 43 | broker: tcp://175.24.61.68:1883 | 43 | broker: tcp://175.24.61.68:1883 |
| 44 | #唯一标识 | 44 | #唯一标识 |
| 45 | - clientId: lh-mqtt-service-001 | 45 | + clientId: lh-mqtt-service-002 |
| 46 | #订阅的topic | 46 | #订阅的topic |
| 47 | topics: "/2/+/+/+/ADD_POST,/2/+/+/+/ALL_POST,/2/+/+/+/DB_TOPIC_DISTRIBUTE,/2/+/+/+/GET,/2/+/+/+/online,/2/+/+/+/PUT_REQ" | 47 | topics: "/2/+/+/+/ADD_POST,/2/+/+/+/ALL_POST,/2/+/+/+/DB_TOPIC_DISTRIBUTE,/2/+/+/+/GET,/2/+/+/+/online,/2/+/+/+/PUT_REQ" |
| 48 | topicconfig: "/{{roleid}}/{{username}}/{{clientid}}/{{payloadtype}}/{{topicType}}" | 48 | topicconfig: "/{{roleid}}/{{username}}/{{clientid}}/{{payloadtype}}/{{topicType}}" |
-
请 注册 或 登录 后发表评论