我第一次配置SpringBoot的项目
看着尚硅谷的雷神教程,创建一个Maven项目然后导入Maven的依赖进行测试
应该是我的环境出现问题,但是不知道怎么去操作
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-07-08 12:01:33.218 ERROR 1600 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.configureTldSkipPatterns(TomcatServletWebServerFactory.java:260)
The following method did not exist:
org.apache.tomcat.JarScanner.setJarScanFilter(Lorg/apache/tomcat/JarScanFilter;)V
The method's class, org.apache.tomcat.JarScanner, is available from the following locations:
jar:file:/D:/JDK/JDK/jre/lib/ext/tomcat-api.jar!/org/apache/tomcat/JarScanner.class
jar:file:/D:/JDK/JDK/jre/lib/ext/tomcat-api.jar!/org/apache/tomcat/JarScanner.class
jar:file:/G:/Maven_jar/org/apache/tomcat/embed/tomcat-embed-core/9.0.38/tomcat-embed-core-9.0.38.jar!/org/apache/tomcat/JarScanner.class
The class hierarchy was loaded from the following locations:
org.apache.tomcat.JarScanner: file:/D:/JDK/JDK/jre/lib/ext/tomcat-api.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.apache.tomcat.JarScanner
Process finished with exit code 1