瀏覽代碼

增加调试信息

master
林万龙 3 年之前
父節點
當前提交
df34c7fccc
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/main/java/com/telpo/iotgateway/listener/IotMessageListener.java

+ 2
- 2
src/main/java/com/telpo/iotgateway/listener/IotMessageListener.java 查看文件

@@ -19,7 +19,7 @@ import java.util.concurrent.ExecutorService;
@Component
public class IotMessageListener implements MessageListener {

private static int count = 0;
private int count = 0;

private ExecutorService executorService;
public void setExecutorService(ExecutorService executorService) {
@@ -44,7 +44,7 @@ public class IotMessageListener implements MessageListener {
/**
* 在这里处理您收到消息后的具体业务逻辑。
*/
private static void processMessage(Message message) {
private void processMessage(Message message) {
try {
byte[] body = message.getBody(byte[].class);
String content = new String(body);


Loading…
取消
儲存