June 2018
Intermediate to advanced
408 pages
11h 23m
English
The proxy in Spring AOP can be created in two ways:
Let's look at these proxy mechanisms and how they differ in the following table:
| JDK proxy | CGLIB proxy |
|
It is built in JDK. |
It is a custom-developed library. |
|
JDK proxy works on the interface. |
CGLIB proxy works on subclassing. This is used when the interface is not present. |
|
It will proxy all interfaces. |
It cannot work when the method and class are final. |
Read now
Unlock full access