From aa32fb245167334d9aef157714817bfb89ca64fb Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Fri, 25 Nov 2016 04:21:41 +0700 Subject: log4jdbc is applied for test database --- .../test/java/com/juick/configuration/RepositoryConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-server/src') diff --git a/juick-server/src/test/java/com/juick/configuration/RepositoryConfiguration.java b/juick-server/src/test/java/com/juick/configuration/RepositoryConfiguration.java index 14f91df8..4a74349f 100644 --- a/juick-server/src/test/java/com/juick/configuration/RepositoryConfiguration.java +++ b/juick-server/src/test/java/com/juick/configuration/RepositoryConfiguration.java @@ -33,8 +33,8 @@ public class RepositoryConfiguration { @Bean public DriverManagerDataSource dataSource() { DriverManagerDataSource dataSource = new DriverManagerDataSource(); - dataSource.setDriverClassName("com.mysql.jdbc.Driver"); - dataSource.setUrl("jdbc:mysql://localhost:33306/juick?autoReconnect=true&user=root"); + dataSource.setDriverClassName("net.sf.log4jdbc.DriverSpy"); + dataSource.setUrl("jdbc:log4jdbc:mysql://localhost:33306/juick?autoReconnect=true&user=root"); return dataSource; } -- cgit v1.2.3