Fix "At least one JAR was scanned for the TLD but does not yet contain the TLD" issue

1. Problem description

26-Aug-2020 18:52:00.419 INFO [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for a TLD but does not yet contain a TLD. Enable debug logging for this logger to get a complete list of JARs that were scanned but in which the TLD was not found. Skipping unnecessary JARs during scanning can improve startup time and JSP compilation time.
26-Aug-2020 18:52:00.729 INFO [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.FrameworkServlet.initServletBean Initializing Servlet 'dispatcherServlet'
26-Aug-2020 18:52:02.048 INFO [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.FrameworkServlet.initServletBean Completed initialization in 1318 ms

2. Solution

2.1 Open the configuration file

Find the ** file** in the folder Tomcatunder the server installation directoryconfcatalina.properties

likeD:\code\apache-tomcat-9.0.24\conf\catalina.properties

2.2 Edit configuration file

Find the following line

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=/

/Change to*.jar

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar

Save and restart the server

Guess you like

Origin blog.csdn.net/konley233/article/details/108245695