CGLIB用来生成动态代理类(dynamic proxy classes),供核心DI和AOP实现之用。由于大量Spring功能的实现都要用到CGLIB,因此你的应用几乎总需包含CGLIB。
基于1个网页-相关网页
Unfortunately, using dynamic proxy classes does have one major drawback: performance.
不幸的是,使用动态代理类确实有一个重要不足:性能。
Method invocations on dynamic proxy classes do not perform nearly as well a direct method call on objects.
对动态代理类的方法调用,不会像直接调用对象的方法那样好。
Using dynamic proxy classes for validation is a simple and effective way to decouple validation routines from your application's core business logic.
使用动态代理类进行验证是从应用程序的核心逻辑去耦验证程序的简单而有效的方法。
应用推荐