问题:项目启动时一直卡死在Loading XML bean definitions from class path resource [ApplicationContext.xml]中
出错代码:
ApplicationContext ctx=new ClassPathXmlApplicationContext("ApplicationContext.xml");
解决方法:将ApplicationContext.xml中以下部分进行替换
替换前:
替换后:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
</beans>