我有一个与此处DispatcherServlet cannot be cast to Servlet 类似的问题,这是使用 Eclipse 运行新的 Spring MVC 项目时的问题。但是,所有答案都建议使用 Maven 的解决方案,而我没有使用 Maven。
我为这个问题搜索了一天,但没有解决方案。
INFO: Starting Servlet engine: [Apache Tomcat/10.0.4]
Mar 22, 2021 9:59:10 AM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
WARNING: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took
[447] milliseconds.
Mar 22, 2021 9:59:10 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for
this logger for a complete list of JARs that were scanned but …Run Code Online (Sandbox Code Playgroud)