严重: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0': Cannot create inner bean '(inner bean)' of type [org.springframework.http.converter.ByteArrayHttpMessageConverter] while setting bean property 'messageConverters' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#2': Initialization of bean failed; nested exception is java.lang.ClassCastException: org.aspectj.weaver.ResolvedType$Array cannot be cast to org.aspectj.weaver.ReferenceType
整合spring mvc3 和hibernate时老是报错,开始以为是jar包冲突,后来看了下原来spring 3以后就没有这个<mvc:annotation-driven/>声明了。把这个去掉就可以了。
本文解决了SpringMVC 3与Hibernate整合时出现的错误,通过去除<mvc:annotation-driven/>声明解决了Bean创建异常的问题。

被折叠的 条评论
为什么被折叠?



