Browse Source

Pull request #12804: REPORT-105614 设计器去除webroot/druid服务

Merge in DESIGN/design from ~VITO/c-design:release/10.0 to release/10.0

* commit '8c9f48a2dcd524d895dc73c30c11ea396b8a62de':
  REPORT-105614 设计器去除webroot/druid服务
security/10.0
vito-刘恒霖 1 year ago
parent
commit
7f68ab323f
  1. 5
      designer-base/src/main/java/com/fr/start/server/FineEmbedServerActivator.java

5
designer-base/src/main/java/com/fr/start/server/FineEmbedServerActivator.java

@ -13,7 +13,6 @@ import com.fr.third.springframework.web.context.support.AnnotationConfigWebAppli
import com.fr.workspace.WorkContext;
import org.apache.catalina.Context;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.Wrapper;
import org.apache.catalina.loader.WebappLoader;
import org.apache.catalina.startup.Tomcat;
import org.apache.catalina.webresources.StandardRoot;
@ -78,10 +77,6 @@ public class FineEmbedServerActivator extends Activator {
String contextPath = "/" + ProductConstants.getAppFolderName();
final Context context = tomcat.addContext(contextPath, docBase);
context.setResources(new StandardRoot(context));
Wrapper servlet = Tomcat.addServlet(context, "DruidStatView", "com.fr.third.alibaba.druid.support.http.StatViewServlet");
context.addServletMappingDecoded("/druid/*", "DruidStatView");
servlet.setLoadOnStartup(1);
servlet.setOverridable(true);
Tomcat.initWebappDefaults(context);
//覆盖tomcat的WebAppClassLoader
context.setLoader(new FRTomcatLoader());

Loading…
Cancel
Save