Spring常见错误

1.  Spring3.2以上版本引用spring-asm.jar:

Context initialization failed  
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class

 原因:

Spring 3.2以上版本,不用再引用Spring-asm.jar,如果引用就出现这个错误。

 

2.  Spring和myBatis整合时,两边的配置文件里都有“mapperLocations”设置,去掉其中一个。

RESULT MAPS COLLECTION ALREADY CONTAINS VALUE FOR userResultMap

 

3.   在springmvc的映射路径中写成 /* 

/* 路径不被springmvc识别, / 路径才能识别出来。

扫描二维码关注公众号,回复: 481714 查看本文章

猜你喜欢

转载自geeksun.iteye.com/blog/2220374