Suggestion from Juergen:

Boot could automatically inject any TransactionExecutionListener beans in the context into a PlatformTransactionManager or ReactiveTransactionManager that it configures, along the following lines:

java @Bean public JdbcTransactionManager transactionManager(DataSource dataSource, Collection<TransactionExecutionListener transactionExecutionListeners) { JdbcTransactionManager tm = new JdbcTransactionManager(); tm.setDataSource(dataSource); tm.setTransactionExecutionListeners(transactionExecutionListeners); return tm; }

Comment From: snicoll

I'd like to fix #36801 before going forward as I implemented it as a customizer which make the problem more apparent.