提交 3bab15ef 编写于 作者: wu-sheng's avatar wu-sheng

1.ClassPool修改为全局变量。

上级 08e31849
......@@ -24,6 +24,7 @@ import java.util.concurrent.ThreadLocalRandom;
public class TracingEnhanceProcessor implements DisposableBean,
BeanPostProcessor, BeanFactoryPostProcessor, ApplicationContextAware {
private static ClassPool pool = ClassPool.getDefault();
private final Set<TracingPattern> beanSet = new ConcurrentHashSet<TracingPattern>();
......@@ -109,7 +110,6 @@ public class TracingEnhanceProcessor implements DisposableBean,
// 符合规范
try {
ClassPool pool = ClassPool.getDefault();
pool.appendClassPath(new ClassClassPath(bean.getClass()));
CtClass ctSource = pool.get(bean.getClass().getName());
CtClass ctDestination = pool.makeClass(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册