aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/config/XMPPConfig.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/config/XMPPConfig.java')
-rw-r--r--src/main/java/com/juick/config/XMPPConfig.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/com/juick/config/XMPPConfig.java b/src/main/java/com/juick/config/XMPPConfig.java
index cde4c0dc..8604b52b 100644
--- a/src/main/java/com/juick/config/XMPPConfig.java
+++ b/src/main/java/com/juick/config/XMPPConfig.java
@@ -19,20 +19,18 @@ package com.juick.config;
import com.juick.XMPPManager;
import com.juick.util.xmpp.JidConverter;
+
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
-import org.springframework.core.convert.ConversionService;
-import org.springframework.format.support.DefaultFormattingConversionService;
@Configuration
@ConditionalOnProperty("xmppbot_jid")
public class XMPPConfig {
+
@Bean
- static ConversionService conversionService() {
- DefaultFormattingConversionService cs = new DefaultFormattingConversionService();
- cs.addConverter(new JidConverter());
- return cs;
+ JidConverter jidConverter() {
+ return new JidConverter();
}
@Bean