From 9b91c5584cb6fbba46d2778f5932bd4c078685e3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 5 Sep 2017 16:27:18 +0300 Subject: fix other web configurations --- .../juick/components/configuration/CrosspostAppConfiguration.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'juick-crosspost/src/main/java') diff --git a/juick-crosspost/src/main/java/com/juick/components/configuration/CrosspostAppConfiguration.java b/juick-crosspost/src/main/java/com/juick/components/configuration/CrosspostAppConfiguration.java index edf58f17..6ceb976b 100644 --- a/juick-crosspost/src/main/java/com/juick/components/configuration/CrosspostAppConfiguration.java +++ b/juick-crosspost/src/main/java/com/juick/components/configuration/CrosspostAppConfiguration.java @@ -22,10 +22,9 @@ import com.juick.server.configuration.BaseWebConfiguration; import com.juick.service.CrosspostService; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Import; import org.springframework.context.annotation.PropertySource; import org.springframework.core.env.Environment; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; +import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.socket.client.WebSocketConnectionManager; import org.springframework.web.socket.client.standard.StandardWebSocketClient; @@ -35,9 +34,9 @@ import javax.inject.Inject; * Created by aalexeev on 11/12/16. */ @Configuration +@EnableWebMvc @PropertySource("classpath:juick.conf") -@Import(BaseWebConfiguration.class) -public class CrosspostAppConfiguration extends WebMvcConfigurationSupport { +public class CrosspostAppConfiguration extends BaseWebConfiguration { @Inject private Environment env; @Inject -- cgit v1.2.3