From 665afc028e0f9d78285d4cc63c77123e492a8a04 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Tue, 7 Jun 2016 18:56:18 +0200 Subject: [PATCH] Revert jOOQ Application.java --- .../test/java/com/baeldung/jooq/springboot/Application.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jooq-spring/src/test/java/com/baeldung/jooq/springboot/Application.java b/jooq-spring/src/test/java/com/baeldung/jooq/springboot/Application.java index 844a2989a5..95e00fd5fb 100644 --- a/jooq-spring/src/test/java/com/baeldung/jooq/springboot/Application.java +++ b/jooq-spring/src/test/java/com/baeldung/jooq/springboot/Application.java @@ -23,6 +23,8 @@ public class Application { @Autowired private Environment environment; + private DataSource dataSource; + public DataSource dataSource() { DriverManagerDataSource dataSource = new DriverManagerDataSource(); @@ -39,7 +41,7 @@ public class Application { } public DataSourceTransactionManager transactionManager() { - return new DataSourceTransactionManager(dataSource()); + return new DataSourceTransactionManager(dataSource); } @Bean