aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'juick-xmpp/src/main/java/com')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java b/juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java
index 96cf8909..5a19270b 100644
--- a/juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java
+++ b/juick-xmpp/src/main/java/com/juick/components/configuration/XmppAppConfiguration.java
@@ -5,10 +5,9 @@ package com.juick.components.configuration;
*/
import com.juick.components.XMPPServer;
-import com.juick.configuration.DataConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Import;
+import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.jdbc.core.JdbcTemplate;
@@ -23,11 +22,12 @@ public class XmppAppConfiguration {
@Inject
private Environment env;
@Inject
- private JdbcTemplate jdbc;
+ private JdbcTemplate jdbcTemplate;
@Bean
+ @DependsOn("jdbcTemplate")
public XMPPServer xmpp() {
- return new XMPPServer(env, service(), jdbc);
+ return new XMPPServer(env, service(), jdbcTemplate);
}
@Bean