Commit 0ebe37b9 authored by yanzg's avatar yanzg

修改实例化关系

parent 88b253ce
...@@ -26,10 +26,6 @@ public class BeanDao implements ApplicationContextAware { ...@@ -26,10 +26,6 @@ public class BeanDao implements ApplicationContextAware {
private static final String QUEUE = "queue"; private static final String QUEUE = "queue";
private static final String EXCHANGE = "exchange"; private static final String EXCHANGE = "exchange";
/**
* 上下文
*/
private ApplicationContext context;
private AmqpAdmin amqpAdmin; private AmqpAdmin amqpAdmin;
/** /**
...@@ -48,7 +44,6 @@ public class BeanDao implements ApplicationContextAware { ...@@ -48,7 +44,6 @@ public class BeanDao implements ApplicationContextAware {
*/ */
@Override @Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
context = applicationContext.getBean(ApplicationContext.class);
amqpAdmin = applicationContext.getBean(AmqpAdmin.class); amqpAdmin = applicationContext.getBean(AmqpAdmin.class);
} }
......
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