package com.jxy.marketall.task.publish;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Description TODO
 * @Date 2024/1/30 17:32
 * @Author 杜懿
 */
@RocketMQMessageListener(topic = "BTC_price_1d",consumerGroup ="consumer-group" )
@Component
public class TestConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {

        System.out.println("收到消息"+message);
    }
}
