From 5bf87fded01c550eddc7605eee8ffbc6771dc5fb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 16 Mar 2018 16:33:03 +0300 Subject: extending BaseWebConfiguration made some strange side-effects --- .../main/java/com/juick/www/configuration/WwwAppConfiguration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'juick-www/src') diff --git a/juick-www/src/main/java/com/juick/www/configuration/WwwAppConfiguration.java b/juick-www/src/main/java/com/juick/www/configuration/WwwAppConfiguration.java index f8258d5e..5e6a0d0e 100644 --- a/juick-www/src/main/java/com/juick/www/configuration/WwwAppConfiguration.java +++ b/juick-www/src/main/java/com/juick/www/configuration/WwwAppConfiguration.java @@ -34,6 +34,7 @@ import org.springframework.cache.caffeine.CaffeineCacheManager; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import javax.inject.Inject; import java.util.Collections; @@ -43,9 +44,9 @@ import java.util.Collections; */ @Configuration @EnableCaching -@Import({WwwServletConfiguration.class, WebSecurityConfig.class, SapeConfiguration.class, SearchConfiguration.class, +@Import({WwwServletConfiguration.class, BaseWebConfiguration.class, WebSecurityConfig.class, SapeConfiguration.class, SearchConfiguration.class, DataConfiguration.class, StorageConfiguration.class, XMPPConfiguration.class}) -public class WwwAppConfiguration extends BaseWebConfiguration { +public class WwwAppConfiguration implements WebMvcConfigurer { @Inject private UserService userService; @Inject -- cgit v1.2.3