使用ssm整合是项目启动tomcat报错java.lang.IndexOutOfBoundsException

解决办法:删除.m2文件夹下的全部仓库,然后重启myeclipse,对项目进行maven project。问题解决。

在没有这样做时,除了tomcat启动会失败,项目还有会报如下错误:

①cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration...

②Build path is incomplete. Cannot find class file for org/springframework/core/Ordered applicationContext.xml

③The type org.springframework.context.ApplicationContext...

这三种错误,最多,在xml文件中显示错误,无论怎么样maven project都没有用。都快郁闷死了。

我怀疑是.m2下的仓库被污染了。所以把.m2下的所有文件删了,使用maven project重新生成一份。

猜你喜欢

转载自www.cnblogs.com/liaoxiaolao/p/10024939.html
今日推荐