From c9f03af544178ff5132dcda7418e2f84c28f13bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9C=B0=E5=B9=B3=E7=BA=BF?= <22250530@qq.com> Date: Wed, 16 Sep 2015 11:01:43 +0800 Subject: [PATCH] --- src/com/wentch/redkale/boot/Application.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/wentch/redkale/boot/Application.java b/src/com/wentch/redkale/boot/Application.java index fdb954ba6..55d4889d9 100644 --- a/src/com/wentch/redkale/boot/Application.java +++ b/src/com/wentch/redkale/boot/Application.java @@ -412,7 +412,7 @@ public final class Application { NodeServer server = null; if ("SNCP".equalsIgnoreCase(protocol)) { server = new NodeSncpServer(Application.this, serconf); - } else if ("HTTP".equalsIgnoreCase(protocol)) { + } else if ("HTTP".equalsIgnoreCase(protocol) || "HTTPS".equalsIgnoreCase(protocol)) { server = new NodeHttpServer(Application.this, serconf); } else { if (!inited.get()) { @@ -426,6 +426,7 @@ public final class Application { final Class type = entry.getType(); NodeProtocol pros = type.getAnnotation(NodeProtocol.class); for (String p : pros.value()) { + if (p.equalsIgnoreCase("SNCP") || p.equalsIgnoreCase("HTTP") || p.equalsIgnoreCase("HTTPS")) continue; final Class old = nodeClasses.get(p); if (old != null && old != type) throw new RuntimeException("Protocol(" + p + ") had NodeServer-Class(" + old.getName() + ") but repeat NodeServer-Class(" + type.getName() + ")"); nodeClasses.put(p, type);