diff options
author | 2017-09-05 16:27:18 +0300 | |
---|---|---|
committer | 2017-09-05 16:27:18 +0300 | |
commit | 9b91c5584cb6fbba46d2778f5932bd4c078685e3 (patch) | |
tree | 1466a70c18b53886996e08996cead817d520a2ae /juick-crosspost | |
parent | 8e5160fcb39c90c83bcda58f1070d07a3dea498d (diff) |
fix other web configurations
Diffstat (limited to 'juick-crosspost')
-rw-r--r-- | juick-crosspost/src/main/java/com/juick/components/configuration/CrosspostAppConfiguration.java | 7 |
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 |