Tag Archives: spring aop

Spring AOP is an error creating bean with name

Some error messages are as follows:

Warning: exception encoded during context initialization – canceling refresh attempt: org.springframework.beans . factory.BeanCreationException : Error creating bean with name ‘duke’ defined in class path resource [com/springinaction/springidol/spring- idol.xml ]

The reason for this problem is that the necessary jar package is missing aspectjweaver.jar , just download it.

Please click here for the download interface of aspectjweaver

Here’s how to download it:

Select the version you need. Here, select version 1.9.1. After entering, as shown in the figure below, click the box on the way to download the responding jar package, and finally pour it into the project.