diff options
author | Alexander Alexeev | 2016-11-10 02:10:37 +0700 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-10 21:41:14 +0300 |
commit | 705d4f87c97dfa20eb6daa88b93ff124fa401b92 (patch) | |
tree | b8016b2abe842f83e2bf5f743d9c58ce17781879 /juick-xmpp/src | |
parent | c123a01b357ef54e7db1bb73f5fbe7762a053be1 (diff) |
no need injecting "jdbc" bean - local jdbc() used
Diffstat (limited to 'juick-xmpp/src')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/configuration/XMPPConfiguration.java | 4 |
1 files changed, 1 insertions, 3 deletions
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() { |