spring-aop
org.springframework.aop.framework.JdkDynamicAopProxy error when parsing
I encountered a very strange phenomenon when the component is running on the server.
Spring Boot 2, jdk 11, the component is ... ringframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689),
Why can this happen?
How do I get a cglib proxy from Spring?
I want to intercept the method of the following simple class:
public class MessageWriter {
public void writeMessage() {
... eated for the given interface. If that target class is any other
class, a CGLIB proxy will be created for the given class.