Open MrLiuFang opened 5 years ago
Hi @MrLiuFang, we detect non-English characters in the issue. This comment is an auto translation from @fescar-robot to help other users to understand this issue. We encourage you to describe your issue in English which is more friendly to other users.
Appears during formal production code integration: is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) ———————————————————————————————————————— trationDelegate$BeanPostProcessorChecker : Bean 'com.pepper.configuration.transaction.TransactionConfiguration' of type [com.pepper.configuration.transaction.TransactionConfiguration$EnhancerBySpringCGLIB$289f21ef] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
ERROR 8950 --- [ restartedMain] c.a.f.c.ConfigFuture : config operation timeout,cost:5000 ms,op:GET,dataId:service.disableGlobalTransaction
com.pepper.configuration.transaction.TransactionConfiguration Customize the auto-configuration class for spring boot with the following code: @Configuration @ConditionalOnProperty(name = "enabled.globalTransaction", havingValue = "true") @ConditionalOnClass(value={GlobalTransactionScanner.class}) public class TransactionConfiguration {
@Bean
public GlobalTransactionScanner globalTransactionScanner(Environment environment) {
return new GlobalTransactionScanner(environment.getProperty("spring.application.name","spring-boot-dubbo"),"my_test_tx_group");
}
}
———————————————————————————————————————— Technology stack: spring boot 2.1.4 + dubbo 2.7 + jpa + fescar-server 0.4.2
Fescar-server is decompressed and the default configuration only changes file.conf (service { default.grouplist = "10.10.100.137:8091" }) and then copy file.conf and registry.conf to the project src/main/resources directory.
The method with @GlobalTransactional has two AOP interception agents that have been customized.
How can I solve it, thank you
在正式生产代码整合过程中出现:is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) ———————————————————————————————————————— trationDelegate$BeanPostProcessorChecker : Bean 'com.pepper.configuration.transaction.TransactionConfiguration' of type [com.pepper.configuration.transaction.TransactionConfiguration$$EnhancerBySpringCGLIB$$289f21ef] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
ERROR 8950 --- [ restartedMain] c.a.f.c.ConfigFuture : config operation timeout,cost:5000 ms,op:GET,dataId:service.disableGlobalTransaction
com.pepper.configuration.transaction.TransactionConfiguration 为spring boot 自定义自动配置类,代码如下: @Configuration @ConditionalOnProperty(name = "enabled.globalTransaction", havingValue = "true") @ConditionalOnClass(value={GlobalTransactionScanner.class}) public class TransactionConfiguration {
}
———————————————————————————————————————— 技术栈:spring boot 2.1.4 + dubbo 2.7 + jpa + fescar-server 0.4.2
fescar-server 采用解压后默认配置 只改了file.conf (service { default.grouplist = "10.10.100.137:8091" })然后将file.conf 和 registry.conf 复制到项目src/main/resources目录下
加有@GlobalTransactional的方法 有被自定义的两个AOP拦截代理过。
请问要如何解决,谢谢