aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server-jdbc/src/test')
-rw-r--r--juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java b/juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java
index dbd13098..94031944 100644
--- a/juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java
+++ b/juick-server-jdbc/src/test/java/com/juick/configuration/RepositoryConfiguration.java
@@ -28,6 +28,7 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
+import javax.sql.DataSource;
import java.util.Collections;
import java.util.List;
@@ -50,7 +51,7 @@ public class RepositoryConfiguration {
}
@Bean
- public DriverManagerDataSource dataSource() {
+ public DataSource dataSource() {
DriverManagerDataSource dataSource = new DriverManagerDataSource();
dataSource.setDriverClassName("net.sf.log4jdbc.DriverSpy");
dataSource.setUrl("jdbc:log4jdbc:mysql://localhost:33306/juick?autoReconnect=true&user=root");