aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java')
-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}")