昨天将一个myEclipse的web项目转换为Eclipse的Web项目时,出现了如下错误:
Failed to read candidate component class: file [G:\javaRuning\WorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\NETCTOSS\WEB-INF\classes\com\tarena\annotation\MyBatisDao.class]
经多方查证才发现是:JDK8与Spring的Jar包不兼容问题。JDK8只支持Spring4及以上的版本。更换了Spring的jar包就解决该问题了。
但MyEclipse的Web项目转Eclipse的Web项目仍发现很多问题,之后我再慢慢详解。