Closed garyrussell closed 2 years ago
https://github.com/spring-cloud/spring-cloud-stream-samples/blob/1e4a4f3239126d31638b408f665846272bf07abc/transaction-kafka-samples/transaction-spring-data-processor/src/main/java/sample/processor/ProcessorApplication.java#L59
The @Transactional annotation needs to be moved to the runtime code, it should not be on the bean definition.
@Transactional
See https://stackoverflow.com/questions/68941306/spring-cloud-stream-database-transaction-does-not-roll-back/68942386#68942386
https://github.com/spring-cloud/spring-cloud-stream-samples/blob/1e4a4f3239126d31638b408f665846272bf07abc/transaction-kafka-samples/transaction-spring-data-processor/src/main/java/sample/processor/ProcessorApplication.java#L59
The
@Transactional
annotation needs to be moved to the runtime code, it should not be on the bean definition.See https://stackoverflow.com/questions/68941306/spring-cloud-stream-database-transaction-does-not-roll-back/68942386#68942386