diff --git a/src/org/redkale/net/http/HttpServlet.java b/src/org/redkale/net/http/HttpServlet.java index 8247030aa..45708f9e1 100644 --- a/src/org/redkale/net/http/HttpServlet.java +++ b/src/org/redkale/net/http/HttpServlet.java @@ -34,8 +34,6 @@ public class HttpServlet extends Servlet String _prefix = ""; //当前HttpServlet的path前缀 - HashMap _tmpentrys; //Rest生成时赋值, 字段名Rest有用到 - private Map.Entry[] mappings; //字段名Rest有用到 //这里不能直接使用HttpServlet,会造成死循环初始化HttpServlet @@ -90,7 +88,7 @@ public class HttpServlet extends Servlet String path = _prefix == null ? "" : _prefix; WebServlet ws = this.getClass().getAnnotation(WebServlet.class); if (ws != null && !ws.repair()) path = ""; - HashMap map = this._tmpentrys != null ? this._tmpentrys : loadActionEntry(); + HashMap map = loadActionEntry(); this.mappings = new Map.Entry[map.size()]; int i = -1; for (Map.Entry en : map.entrySet()) {