Setting Up AOP Dependencies

Setting Up AOP Dependencies: For setting up AOP dependencies in spring we have to add AOP related libraries.

Step 1: Create project for AOP

click File->New->Java Project then get the following windows and give the name of project spring25AOPDemo

Setting Up AOP Dependencies

After writing project name spring25AOPDemo and click on ->finish then project created now we have to add related jar files.

 

Step 2: Adding Jar files->

right click on project->properties->Java Build Path->Lib->Add Liberarie.. then we get the following windows

Setting Up Spring AOP Dependencies

 

Now select User Library->Next->User Libraries…->New then we will get the following windows
 
AOP
After creating user library aspectj-lib then add the following jar files into this user library.
 
AOP Jars
  • aspectjrt.jar
  • aspectjweaver.jar
  • asm-2.2.3.jar
  • aopalliance.jar
Then select aspectj-lib and click on OK then we get the following windows.
Spring AOP

 

Spring AOP Related Posts

  1. Spring AOP Interview Questions and Answers
  2. Spring AOP-Introduction to Aspect Oriented Programming
  3. @Aspect Annotation in Spring
  4. Advices in Spring AOP
  5. Spring AOP JoinPoints and Advice Arguments
  6. Spring AOP-Declaring pointcut Expressions with Examples
  7. Spring AOP XML configuration
  8. Spring AOP XML Schema based Example
  9. Spring AOP AspectJ @Before Annotation Advice Example
  10. Spring AOP Before Advice Example using XML Config
  11. Spring AOP AspectJ @After Annotation Advice Example
  12. Spring AOP After Advice Example using XML Config
  13. Spring AOP AspectJ @AfterReturning Annotation Advice Example
  14. Spring AOP After-Returning Advice Example using XML Config
  15. Spring AOP AspectJ @AfterThrowing Annotation Advice Example
  16. Spring AOP After Throwing Advice Example using XML Config
  17. Spring AOP AspectJ @Around Annotation Advice Example
  18. Spring AOP Around Advice Example using XML Config
  19. Spring AOP Writing First AspectJ Program in Spring
  20. Spring AOP Proxies in Spring
  21. Spring AOP Transaction Management in Hibernate
  22. Spring Transaction Management
  23. Spring Declarative Transaction Management Example
  24. Spring AOP-Ordering of Aspects with Example

Now our project spring25AOPDemo is created with AOP libraries and spring library . Next chapter we will creating first AOP program.

Previous
Next