处理自己的一个失误造成的context丢失

This commit is contained in:
zhangzc
2017-06-21 23:36:59 +08:00
parent 98fc59ed74
commit 81d46264d0
2 changed files with 0 additions and 4 deletions

View File

@@ -34,9 +34,6 @@ public class ZzcServer implements ApplicationContextAware,InitializingBean {
Map<String,Object> map =applicationContext.getBeansWithAnnotation(ZzcService.class);
for (Object serviceBean : map.values()) {
try {
//获取自定义注解上的value
String value = serviceBean.getClass().getAnnotation(ZzcService.class).value();
System.out.println("注解上的value: " + value);
//拿到类下面的所有方法
Method[] methods = serviceBean.getClass().getDeclaredMethods();
methodsMap = new HashMap();

View File

@@ -24,6 +24,5 @@ import io.netty.channel.ChannelHandlerContext;
}
});
}
ctx = null;
}
}