Chapter 3. Spring AOP and AspectJ Support

In this chapter, you will learn Spring AOP usage and some advanced AOP topics, such as advice precedence and introduction. AOP has been a cornerstone of the Spring framework since its inception. Though support for AOP between versions 1.x and 2.x of the Spring framework presented significant changes, support for AOP in version 3.x remains the same as in version 2.x. Moreover, you will learn how to use the AspectJ framework in Spring applications.

Starting from Spring version 2.x, you can write your aspects as POJOs with either AspectJ annotations or XML-based configurations in the bean configuration file. As these two types of configurations have the same effect indeed, most of this chapter will focus on ...

Get Spring Recipes, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.