Spring Aop error creating bean with name ‘org.springframework.aop.config.internalAutoProxyCreator

In addition to spring AOP jar package, spring AOP should also be included in spring AOP programming aspectjrt.jar , aspectjweaver.jar , and aopalliance_ 1.0.jar, otherwise an error is reported:

org.springframework.beans . factory.BeanCreationExcspring -aopeption: Error creating bean with name ‘ org.springframework.aop . config.internalAutoProxyCreator ‘: Instantiation of bean failed; nested exception is org.springframework.beans .BeanInstantiationException: Could not instantiate bean class [ org.springframework.aop . aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator ]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError : org/aopalliance/intercept/MethodInterceptor

 

aopalliance_ 1.0.jar download address:

http://mirrors.ibiblio.org/pub/mirrors/maven2/aopalliance/aopalliance/1.0/

 

Read More: