提示错误:org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [beans.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
Caused by: java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor   但是我的包都导入了啊 感谢~~~

解决方案 »

  1.   

    java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor上网查了下,这可能是spring3.0特有的问题,2.5就没有!出错的原因是少了个包,解决的方案是去 http://sourceforge.net/projects/aopalliance/files/下载了那个包,加到路径里,就行了!spring3.0比2.5需要好多额外的包,除了上面的vaopalliance外,还可能会需要asm和cglib!另外org.springframework.web.context.ContextLoaderListener需要单独加载 spring.web那个jar 而不是集成在 spring.jar对应的spring.core中//Spring Bean的标识.
    @Componentorg.springframework.stereotype.Component需要加载 sprnig.context包
    org/aopalliance/aop/Advice
      

  2.   

    没问题啊。。 都直接COPY了。~