apache / rocketmq-spring

Apache RocketMQ Spring Integration
https://rocketmq.apache.org/
Apache License 2.0
2.12k stars 899 forks source link

TransactionHandlerRegistry is not eligible for getting processed by all BeanPostProcessors #145

Closed zcwease closed 4 years ago

zcwease commented 5 years ago

The issue tracker is ONLY used for bug report and feature request.

Any question or RocketMQ proposal please use our mailing lists.

BUG REPORT

  1. Please describe the issue you observed:
org.apache.rocketmq rocketmq-spring-boot-starter 2.0.3 true

代码: @Resource private RocketMQTemplate template;

public static void main(String[] args) {
    SpringApplication.run(TestMqStarterApplication.class, args);
}

@Override
public void run(String... args) throws Exception {
    template.convertAndSend("test-topic-1", "Hello, World!");

}

启动打印日志如下

2019-09-17 20:38:44.808 INFO 11892 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'rocketMQTemplate' of type [org.apache.rocketmq.spring.core.RocketMQTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-09-17 20:38:44.810 INFO 11892 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'transactionHandlerRegistry' of type [org.apache.rocketmq.spring.config.TransactionHandlerRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

导致postprocessor无法得到RocketMQTemplate类型的bean对象

RongtongJin commented 5 years ago

TransactionHandlerRegistry will be removed in future version.

zongtanghu commented 4 years ago

Firstly, this issue can be assigned to me.