ITeye博客

spring mvc3 整合hibernate jar包问题

wenjun00 · 2012-06-07 13:08 · spring mvc3 · 编程语言 · Markdown

严重: 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/>声明了。把这个去掉就可以了。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。