Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- class TxConfig {
- @Feature
- public TxAnnotationDriven tx() {
- return new TxAnnotationDriven(this.txManager()).proxyTargetClass(false);
- }
- @Bean
- public TransactionalTestBean testBean() {
- return new TransactionalTestBean();
- }
- @Bean
- public PlatformTransactionManager txManager() {
- return new CallCountingTransactionManager();
- }
- }
Add Comment
Please, Sign In to add comment