Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeExcep

Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeExcep严 重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener 

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException 


原来是spring版本的问题,MyBatis-Spring只能在spring3.0版本上使用,如果用spring3.0以下版本就会出现该问题,建议将spring升级为3.0或改用ibatis2.0!





posted @ 2014-08-05 15:50  Tim&Blog  阅读(7270)  评论(0编辑  收藏  举报