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 --- .../components/configuration/NotificationsAppConfiguration.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'juick-notifications/src/main/java/com/juick/components') 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}") -- cgit v1.2.3