直接使用MyEclipse添加对Spring的支持时,applicationContext.xml内部没有错,就是有个小红叉,看了一下problems里面有error显示:
DescriptionResourcePathLocationType
Error occured processing XML 'Provider org.apache.xerces.parsers.IntegratedParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.'. See Error Log for more detailsapplicationContext.xml/spring/srcUnknownSpring Beans Problem
可能原因是与Spket有冲突导致的;
解决方法:
右击工程,选择properties,选myeclipse,选spring,选bean,然后把configfile标签下的spring配置文件全都remove,确定就好了。等报错消失了,再重新手动add。