Revert jOOQ Application.java

This commit is contained in:
Grzegorz Piwowarek 2016-06-07 18:56:18 +02:00
parent 27250c67b1
commit 665afc028e
1 changed files with 3 additions and 1 deletions

View File

@ -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