spring,如何更改cglib命名策略 [英] spring, how to change cglib naming policy

查看:195
本文介绍了spring,如何更改cglib命名策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当spring创建代理时,它使用带有默认命名策略的cglib。有没有办法改变命名政策?生成的类名与我使用的另一个框架发生冲突。

When spring creates a proxy, it uses cglib with default naming policy. Is there any way to change the naming policy? Generated class names clash with another framework I use.

推荐答案

看来cglib 声明它可以检测到名称冲突,但出于某种原因,它不会出现这种情况。

It seems cglib claims it can detect name clashes but for some reason it does not in this case.

由于这个问题(和你的报告?)你正在使用的另一个框架(catch-exception)修补他们的代码以避免它。

Because of that problem (and your report?) the other framework you are using (catch-exception) patched their code to avoid it.

这篇关于spring,如何更改cglib命名策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆