Myeclipse新建SpringBoot项目添加Myeclipse Service Library 之后项目就报错Unable to start embedded container;

本文介绍在MyEclipse中创建SpringBoot项目时,添加MyeclipseServiceLibrary后出现Unable to start embedded container错误的原因及解决方法。通过删除项目构建路径中的Apache Tomcat v7.0运行库,可以有效解决此问题。

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值