QNJR-GROUP / EasyTransaction

A distribute transaction solution(分布式事务) unified the usage of TCC , SAGA ,FMT (seata/fescar AutoCompensation), reliable message, compensate and so on;
Apache License 2.0
2.36k stars 809 forks source link

应用程序使用了aop,无法获取类上所标注的BusinessIdentifer注解。 #128

Closed dengchong1994 closed 4 years ago

dengchong1994 commented 5 years ago

getRequestClass((Class<? extends BusinessProvider<?>>) provider.getClass());

skyesx commented 5 years ago

问题准确的来说是 Spring 代理了ET内部的BusinessProvider,一般来说,所有的其他外部切面增强都不应该在这里进行,若有增强必要,都应该加到业务的代码中。

要解决这个问题有几个方法:

在下一个版本将会增加兼容支持 经过代理的 BusinessProvider的处理