61

Spring AOP中JDK和CGLib动态代理哪个更快?-wx5c7f616d835a9的博客

 4 years ago
source link: https://blog.51cto.com/14227759/2400378
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一、背景昨天一位小伙伴面试的时候被问到:Spring AOP中JDK和CGLib动态代理哪个效率更高?在知识星球整理了一下,今天特分享出来,供大家参考!二、基本概念首先,我们知道Spring AOP的底层实现有两种方式:一种是JDK动态代理,另一种是CGLib的方式。自Java 1.3以后,Java提供了动态代理技术,允许开发者在运行期创建接口的代理实例,后来这项技术被用到了Spring的很多地方

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK