aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components/configuration
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-notifications/src/main/java/com/juick/components/configuration
parent8e5160fcb39c90c83bcda58f1070d07a3dea498d (diff)
fix other web configurations
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components/configuration')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java b/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java
index 5f20e43e..19d56d59 100644
--- a/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java
+++ b/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java
@@ -10,7 +10,7 @@ import org.springframework.http.client.InterceptingClientHttpRequestFactory;
import org.springframework.http.client.support.BasicAuthorizationInterceptor;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
+import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import java.util.Collections;
import java.util.List;
@@ -19,12 +19,13 @@ import java.util.List;
* Created by aalexeev on 11/12/16.
*/
@Configuration
+@EnableWebMvc
@EnableScheduling
@PropertySource("classpath:juick.conf")
@ComponentScan(basePackages = "com.juick.components.service")
-@Import({ BaseWebConfiguration.class, APNSConfiguration.class, MPNSConfiguration.class,
+@Import({ APNSConfiguration.class, MPNSConfiguration.class,
GCMConfiguration.class, XMPPConfiguration.class })
-public class NotificationsAppConfiguration extends WebMvcConfigurationSupport {
+public class NotificationsAppConfiguration extends BaseWebConfiguration {
@Value("${api_user:juick}")
private String apiUser;
@Value("${api_password:secret}")