Skip to content

Commit d8cd30d

Browse files
author
Grzegorz Piwowarek
committed
Fix Application.java
1 parent 665afc0 commit d8cd30d

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎jooq-spring/src/test/java/com/baeldung/jooq/springboot/Application.java‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import org.springframework.boot.autoconfigure.SpringBootApplication;
1010
import org.springframework.context.annotation.Bean;
1111
import org.springframework.core.env.Environment;
12-
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
1312
import org.springframework.jdbc.datasource.DriverManagerDataSource;
1413
import org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy;
1514
import org.springframework.transaction.annotation.EnableTransactionManagement;
@@ -23,8 +22,6 @@ public class Application {
2322
@Autowired
2423
private Environment environment;
2524

26-
private DataSource dataSource;
27-
2825
public DataSource dataSource() {
2926
DriverManagerDataSource dataSource = new DriverManagerDataSource();
3027

@@ -40,10 +37,6 @@ public TransactionAwareDataSourceProxy transactionAwareDataSource() {
4037
return new TransactionAwareDataSourceProxy(dataSource());
4138
}
4239

43-
public DataSourceTransactionManager transactionManager() {
44-
return new DataSourceTransactionManager(dataSource);
45-
}
46-
4740
@Bean
4841
public DataSourceConnectionProvider connectionProvider() {
4942
return new DataSourceConnectionProvider(transactionAwareDataSource());

0 commit comments

Comments
 (0)