aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/src/test/java/com/juick/configuration
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-11-13 15:23:06 +0300
committerGravatar Vitaly Takmazov2017-11-13 15:23:06 +0300
commitfc77902b14c16e7c911a0f2fe6a73e69b252f699 (patch)
tree4e86783db9b588af9f98a8a3e56a48be7a6d53a5 /juick-server-jdbc/src/test/java/com/juick/configuration
parent4f32ea8c6889be56861a290e633a89c5b6740e3a (diff)
notifications: moved top service from cron
Diffstat (limited to 'juick-server-jdbc/src/test/java/com/juick/configuration')
-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");