Boot could automatically inject any
TransactionExecutionListenerbeans in the context into aPlatformTransactionManagerorReactiveTransactionManagerthat 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.