mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 09:09:01 +00:00
Delegate ClassLoader with Tomcat
Use standard class loading delegation with Tomcat.
This commit is contained in:
+1
@@ -152,6 +152,7 @@ public class TomcatEmbeddedServletContainerFactory extends
|
||||
.getClassLoader() : ClassUtils.getDefaultClassLoader());
|
||||
WebappLoader loader = new WebappLoader(context.getParentClassLoader());
|
||||
loader.setLoaderClass(TomcatEmbeddedWebappClassLoader.class.getName());
|
||||
loader.setDelegate(true);
|
||||
context.setLoader(loader);
|
||||
if (isRegisterDefaultServlet()) {
|
||||
addDefaultServlet(context);
|
||||
|
||||
Reference in New Issue
Block a user