29 lines
785 B
Plaintext
29 lines
785 B
Plaintext
package com.sercurityControl.proteam.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
|
|
import org.apache.rocketmq.spring.core.RocketMQListener;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* 之鞥识别推送
|
|
*
|
|
*/
|
|
@Slf4j
|
|
@Component
|
|
@RocketMQMessageListener(topic = "UVP_ANALYSIS_RESULT",consumerGroup = "piadmin")
|
|
public class MqDevStatusConsumer implements RocketMQListener<String> {
|
|
|
|
@Override
|
|
public void onMessage(String message) {
|
|
JSONObject result=JSONObject.parseObject(message);
|
|
log.info(result.toJSONString());
|
|
}
|
|
|
|
|
|
}
|