The selection did not contain any resources that can run on a server.

今天运行SSM项目的时候,出现了一个错误如下

The selection did not contain any resources that can run on a server.

当我点击run as的时候不会出现Run on server

分析原因,网上百度,结果查出来如果web.xml里面写错了东西就会导致错误,我看了下自己web.xml里面的配置,果然发现了错误,如下所示

这里我多写了一个</web-app>,所以才会出现这种低级错误,所以碰到这种问题的小伙伴记得到这里去找错误。

原创文章 217 获赞 634 访问量 50万+

猜你喜欢

转载自blog.csdn.net/wyf2017/article/details/105659131
今日推荐