From 81d46264d0a47fd2a5e6be44cc171234b8d3fd2d Mon Sep 17 00:00:00 2001 From: zhangzc <347328331@qq.com> Date: Wed, 21 Jun 2017 23:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=87=AA=E5=B7=B1=E7=9A=84?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=A4=B1=E8=AF=AF=E9=80=A0=E6=88=90=E7=9A=84?= =?UTF-8?q?context=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/_94zichao/server/bootstrap/ZzcServer.java | 3 --- .../java/cn/_94zichao/server/factory/executor/Executor.java | 1 - 2 files changed, 4 deletions(-) diff --git a/src/main/java/cn/_94zichao/server/bootstrap/ZzcServer.java b/src/main/java/cn/_94zichao/server/bootstrap/ZzcServer.java index 660783a..7a1e955 100644 --- a/src/main/java/cn/_94zichao/server/bootstrap/ZzcServer.java +++ b/src/main/java/cn/_94zichao/server/bootstrap/ZzcServer.java @@ -34,9 +34,6 @@ public class ZzcServer implements ApplicationContextAware,InitializingBean { Map 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(); diff --git a/src/main/java/cn/_94zichao/server/factory/executor/Executor.java b/src/main/java/cn/_94zichao/server/factory/executor/Executor.java index c532fff..591f219 100644 --- a/src/main/java/cn/_94zichao/server/factory/executor/Executor.java +++ b/src/main/java/cn/_94zichao/server/factory/executor/Executor.java @@ -24,6 +24,5 @@ import io.netty.channel.ChannelHandlerContext; } }); } - ctx = null; } } \ No newline at end of file