diff --git a/pom.xml b/pom.xml index 8d2043f..7c5d8dc 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.yasenagat.zkweb zkWeb war - 1.0 + v1.1 zkWeb http://maven.apache.org diff --git a/src/main/java/com/yasenagat/zkweb/web/ZkCacheServlet.java b/src/main/java/com/yasenagat/zkweb/web/ZkCacheServlet.java index 3434e28..28a71b4 100644 --- a/src/main/java/com/yasenagat/zkweb/web/ZkCacheServlet.java +++ b/src/main/java/com/yasenagat/zkweb/web/ZkCacheServlet.java @@ -1,10 +1,7 @@ package com.yasenagat.zkweb.web; import java.io.IOException; -import java.util.List; import java.util.Map; -import java.util.Set; - import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; @@ -12,12 +9,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Component; import com.yasenagat.zkweb.util.ZkCache; import com.yasenagat.zkweb.util.ZkCfgFactory; -import com.yasenagat.zkweb.util.ZkCfgManager; import com.yasenagat.zkweb.util.ZkManagerImpl; +@Component public class ZkCacheServlet extends HttpServlet { private static final Logger log = LoggerFactory.getLogger(ZkCacheServlet.class); @@ -29,7 +27,6 @@ public class ZkCacheServlet extends HttpServlet { */ public ZkCacheServlet() { super(); - // TODO Auto-generated constructor stub } /** diff --git a/src/main/webapp/resources/zkweb.js b/src/main/webapp/resources/zkweb.js index 36cdce9..865f1a9 100644 --- a/src/main/webapp/resources/zkweb.js +++ b/src/main/webapp/resources/zkweb.js @@ -153,6 +153,11 @@ $(function(){ initOneTree(pa.id,_cfg); $('#zkstate_showtype_form input[name="id"]').val(_cfg.ID); ZkStateRefresh(null); + refreshConnectState(_cfg); + var rootNode=$('#zkTree').tree('getRoot'); + if(rootNode==null){ + localeMessager('alert','title','提示','connstatedisconn','连接未建立!'); + } } } });