Skip to content

Commit 665afc0

Browse files
author
Grzegorz Piwowarek
committed
Revert jOOQ Application.java
1 parent 27250c6 commit 665afc0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public class Application {
2323
@Autowired
2424
private Environment environment;
2525

26+
private DataSource dataSource;
27+
2628
public DataSource dataSource() {
2729
DriverManagerDataSource dataSource = new DriverManagerDataSource();
2830

@@ -39,7 +41,7 @@ public TransactionAwareDataSourceProxy transactionAwareDataSource() {
3941
}
4042

4143
public DataSourceTransactionManager transactionManager() {
42-
return new DataSourceTransactionManager(dataSource());
44+
return new DataSourceTransactionManager(dataSource);
4345
}
4446

4547
@Bean

0 commit comments

Comments
 (0)