aboutsummaryrefslogtreecommitdiff
path: root/juick-crosspost/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-09-05 16:27:18 +0300
committerGravatar Vitaly Takmazov2017-09-05 16:27:18 +0300
commit9b91c5584cb6fbba46d2778f5932bd4c078685e3 (patch)
tree1466a70c18b53886996e08996cead817d520a2ae /juick-crosspost/src/main/java
parent8e5160fcb39c90c83bcda58f1070d07a3dea498d (diff)
fix other web configurations
Diffstat (limited to 'juick-crosspost/src/main/java')
-rw-r--r--juick-crosspost/src/main/java/com/juick/components/configuration/CrosspostAppConfiguration.java7
1 files changed, 3 insertions, 4 deletions
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