各位好,内嵌tomcat时发现一个启动问题,没有任何报错异常,程序就卡死了
this.tomcat = new Tomcat();
this.tomcat.setPort(httpPort);
this.tomcat.setHostname(httpHost);
this.tomcat.setBaseDir(tomcatDir);
this.tomcat.getHost().setAppBase(webAppDir);
只要调用 this.tomcat.getHost() 程序就无法继续执行了。
问下有遇到相同情况的朋友吗? 有偿解决,谢谢了。
this.tomcat = new Tomcat();
this.tomcat.setPort(httpPort);
this.tomcat.setHostname(httpHost);
this.tomcat.setBaseDir(tomcatDir);
this.tomcat.getHost().setAppBase(webAppDir);
只要调用 this.tomcat.getHost() 程序就无法继续执行了。
问下有遇到相同情况的朋友吗? 有偿解决,谢谢了。