Spring异常处理
殇殇亿往岁月流
不回忆昨天,不幻想明天,踏实干好今天!!!
展开
-
Error creating bean with name 'accounterService' defined in class path resource....
如果用Spring框架是出现下面的错误:原因: 在pom.xml中少导入spring-aspects-4.2.4.RELEASE.jar包了,直接导入就可以了在pom.xml添加下面的jar坐标就可以了 <!-- https://mvnrepository.com/artifact/org.springframework/spring-aspects --> <...原创 2018-04-22 15:42:15 · 1297 阅读 · 0 评论 -
IOException parsing XML document from class path resource [xxx.xml] cannot be opened because it does
错误原因:使用注解的方式classpath没有添加例如:@ContextConfiguration(value = "classpath:applicationContext.xml")不要漏了classpath引用spring核心配置文件时,注意不要漏写classpath===============================================================...原创 2018-04-22 21:40:36 · 1190 阅读 · 0 评论