Browse Source

Merge pull request #1652 in BA/design from ~JU/design:feature/10.0 to feature/10.0

* commit '7b0ecab0adcb213f30b03b656656eb36776629e2':
  DEC-472 新模块划分与启动、关闭框架 已经改好了
master
superman 7 years ago
parent
commit
6f2ae823e2
  1. 16
      designer_base/src/com/fr/start/server/TomcatHost.java

16
designer_base/src/com/fr/start/server/TomcatHost.java

@ -145,28 +145,12 @@ public class TomcatHost {
return server;
}
//MoMeak:调试用,等ju那边联调好了删
private void setRootNull(){
Class<?> clazz = ModuleContext.class;
try {
Field field = clazz.getDeclaredField("root");
field.setAccessible(true);
field.set(null,null);
} catch (NoSuchFieldException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
/**
* Start
*
* @throws Exception
*/
public void start() throws Exception {
//MoMeak:调试用
setRootNull();
tomcat.start();
for (int i = 0; i < listenerList.size(); i++) {
TomcatServerListener listener = TomcatHost.this.getLinstener(i);

Loading…
Cancel
Save