P
P
p-oleg2021-09-10 11:04:41
Java
p-oleg, 2021-09-10 11:04:41

What is the difference between creating a proxy through BeanPostProcessor and AOP?

We can create a proxy for the target bean in the postProcessAfterInitialization() method of the BeanPostProcessor.
And we can use AOP - and a proxy will also be created, also through Dynamic Proxy or CGlib.
What is the difference?
When should you use BPP and when should you use AOP?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question