Myeclipse新建SpringBoot项目添加Myeclipse Service Library 之后项目就报错Unable to start embedded container;
报错如下:
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoSuchMethodError: org.apache.tomcat.util.scan.StandardJarScanner.setJarScanFilter(Lorg/apache/tomcat/JarScanFilter;)V
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE]
...
解决、把添加的Tomcat的Library给删掉就好了:
右键项目--build path--configure build path--libraries--Apache tomcat v7.0 runtime libraries--remove