package com.usky.transfer.service.rocketmq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//@Slf4j
//@Component
//@RocketMQMessageListener(consumerGroup = "${rocketmq.consumer.group}", topic = "${rocketmq.consumer.topic}")
//public class MyConsumer implements RocketMQListener<String> {
//    @Autowired
//    private RocketMQSimpleContext simpleContext;
//
//    @Override
//    public void onMessage(String message){
//        System.out.println("DirectReceiver消费者收到消息： " + message);
//        simpleContext.disposeMessageToDB(message);
//    }
//}
