Commit cd2e7307 authored by yanzg's avatar yanzg

自动变量处理

parent 935bc20a
...@@ -7,17 +7,18 @@ import org.springframework.amqp.rabbit.core.ChannelAwareMessageListener; ...@@ -7,17 +7,18 @@ import org.springframework.amqp.rabbit.core.ChannelAwareMessageListener;
import org.springframework.amqp.rabbit.core.RabbitAdmin; import org.springframework.amqp.rabbit.core.RabbitAdmin;
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer; import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
import org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter; 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.beans.factory.annotation.Value;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@Component @Component
public class MqConsumeDynamic { public class MqConsumeDynamic {
@Autowired @Resource
private ConnectionFactory connectionFactory; private ConnectionFactory connectionFactory;
@Autowired @Resource
private RabbitAdmin rabbitAdmin; private RabbitAdmin rabbitAdmin;
@Value("${yzg.onOfConsumer:10}") @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