基于SpringBoot实现AOP+jdk/CGlib动态代理详解

动态代理是一种设计模式。在Spring中,有俩种方式可以实现动态代理--JDK动态代理和CGLIB动态代理。 JDK动态代理# 首先定义一个人的接口: Copy public interface Person { void study(); } 然后接上一个Student class Copy public class Student implements Person{ @Override
相关文章
相关标签/搜索