springboot o.a.tomcat.util.scan.StandardJarScanner : Failed to scan [file:/D:/apache-maven-3.0.5

问题

2018-08-21 13:42:14.796  WARN 15252 --- [ost-startStop-1] o.a.tomcat.util.scan.StandardJarScanner  : Failed to scan [file:/D:/apache-maven-3.0.5/jar/org/apache/xmlgraphics/batik-js/1.7/xbean.jar] from classloader hierarchy

java.io.FileNotFoundException: D:\apache-maven-3.0.5\jar\org\apache\xmlgraphics\batik-js\1.7\xbean.jar (系统找不到指定的文件。)

解决

由于springboot项目自带tomcat插件,冲突导致,检查pom.xml文件找到以下内容


		
			org.springframework.boot
			spring-boot-starter-tomcat
			provided
		
		
			org.apache.tomcat.embed
			tomcat-embed-jasper
			provided
		

删除以上内容,再次启动即可解决以上问题!!

你可能感兴趣的:(SpringBoot)