Commit cd2e7307 authored by yanzg's avatar yanzg

自动变量处理

parent 935bc20a
......@@ -7,17 +7,18 @@ import org.springframework.amqp.rabbit.core.ChannelAwareMessageListener;
import org.springframework.amqp.rabbit.core.RabbitAdmin;
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
import org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@Component
public class MqConsumeDynamic {
@Autowired
@Resource
private ConnectionFactory connectionFactory;
@Autowired
@Resource
private RabbitAdmin rabbitAdmin;
@Value("${yzg.onOfConsumer:10}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment