If it is published to WebLogic, it can be configured in Webcontent\web-inf\weblogic.xml.
The reference configuration is as follows:
<?xml version= "1.0" encoding= "UTF-8"?>
<weblogic-web-app xmlns= "Http://www.bea.com/ns/weblogic/90"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation= "HTTP://JAVA.SUN.COM/XML/NS/J2EE http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd/http Www.bea.com/ns/weblogic/90http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd ">
<container-descriptor>
<!--modifying the Jvav class does not automatically restart the logic in debug mode without restarting, but changing the method parameters and so on needs to be restarted.
<servlet-reload-check-secs>-1</servlet-reload-check-secs>
<!--<resource-reload-check-secs>-1</resource-reload-check-secs>
<!--Web-inf/classes is better than Lib-loaded
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
<!--URL root path--
<context-root></context-root>
<jsp-descriptor>
<!--view (Debug) JSP compilation generated Java source files \servers\adminserver\tmp\_wl_user\webapp\xxx\jsp_servlet\_jsp\_
<keepgenerated>true</keepgenerated>
<!--do not restart the service after you modify the JSP to automatically load-
<page-check-seconds>1</page-check-seconds>
</jsp-descriptor>
</weblogic-web-app>
-----------------------------------------------------------------
ClassLoader load order when Tomcat starts
A list of the precedence orders for Tomcat class loading
1. First is the jar file under $java_home/jre/lib/ext/.
2. The Jar and class files in the environment variable CLASSPATH.
3. $CATALINA the class file under _home/common/classes.
4. $CATALINA the jar file under _home/commons/endorsed.
5. $CATALINA the jar file under _home/commons/i18n.
6. $CATALINA the jar file under _home/common/lib.
(a jar file, such as the JDBC driver, can be placed here so that you can avoid a situation where the JDBC driver is not found in Server.xml configuration of the data source.) )
7. $CATALINA the class file under _home/server/classes.
8. $CATALINA the jar file under _home/server/lib/.
9. $CATALINA the class file under _base/shared/classes.
$CATALINA the jar file under _base/shared/lib.
11. The class file under each specific webapp/web-inf/classes.
12. jar files under their specific webapp/web-inf/lib
The class file loading order in the jar in the Java Web project under the Classes folder in class and Web-inf/lib