Merge pull request #20832 from dreis2211
* pr/20832: Update copyright year Fix WebappLoader constructor deprecations Closes gh-20832
This commit is contained in:
@@ -149,7 +149,7 @@ public class TomcatReactiveWebServerFactory extends AbstractReactiveWebServerFac
|
||||
context.addLifecycleListener(new Tomcat.FixContextListener());
|
||||
context.setParentClassLoader(ClassUtils.getDefaultClassLoader());
|
||||
skipAllTldScanning(context);
|
||||
WebappLoader loader = new WebappLoader(context.getParentClassLoader());
|
||||
WebappLoader loader = new WebappLoader();
|
||||
loader.setLoaderClass(TomcatEmbeddedWebappClassLoader.class.getName());
|
||||
loader.setDelegate(true);
|
||||
context.setLoader(loader);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -222,7 +222,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
|
||||
// Tomcat is < 8.5.39. Continue.
|
||||
}
|
||||
configureTldSkipPatterns(context);
|
||||
WebappLoader loader = new WebappLoader(context.getParentClassLoader());
|
||||
WebappLoader loader = new WebappLoader();
|
||||
loader.setLoaderClass(TomcatEmbeddedWebappClassLoader.class.getName());
|
||||
loader.setDelegate(true);
|
||||
context.setLoader(loader);
|
||||
|
||||
Reference in New Issue
Block a user