From 705d4f87c97dfa20eb6daa88b93ff124fa401b92 Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Thu, 10 Nov 2016 02:10:37 +0700 Subject: no need injecting "jdbc" bean - local jdbc() used --- .../java/com/juick/components/configuration/XMPPConfiguration.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'juick-xmpp/src/main') diff --git a/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java b/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java index 640c0d2b..9e7e6cad 100644 --- a/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java +++ b/juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java @@ -39,8 +39,6 @@ public class XMPPConfiguration extends WebMvcConfigurationSupport { Environment env; @Inject ExecutorService service; - @Inject - JdbcTemplate jdbc; @Bean JdbcTemplate jdbc() { @@ -80,7 +78,7 @@ public class XMPPConfiguration extends WebMvcConfigurationSupport { } @Bean public XMPPServer xmpp() { - return new XMPPServer(env, service, jdbc); + return new XMPPServer(env, service, jdbc()); } @Bean public ExecutorService service() { -- cgit v1.2.3