Commit 34d85fa4 authored by yanzg's avatar yanzg

修复实体关系

parent 0ebe37b9
......@@ -27,6 +27,7 @@ public class BeanDao implements ApplicationContextAware {
private static final String EXCHANGE = "exchange";
private AmqpAdmin amqpAdmin;
private ApplicationContext context;
/**
* Set the ApplicationContext that this object runs in.
......@@ -44,6 +45,7 @@ public class BeanDao implements ApplicationContextAware {
*/
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
context = applicationContext;
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