1. Spring 4. This is applied internally using SpringWebMvcImportSelector @EnableWebSecurity public class WebMvcSecurityConfiguration extends WebMvcConfigurerAdapterYou should extend WebMvcConfigurerAdapter in your config class like @Configuration public class WebMvcConfig extends WebMvcConfigurerAdapter {. web. Docs and code should be updated to use non-deprecated classes from Spring Web. class) public class MyConfiguration extends. For a more complete explanation, please read the following article. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. The AsyncRestTemplate is deprecated. Teams. " ,以及快速的分析产生这个严重警告的原因和处理办法。 2. @EnableAutoConfiguration public class AddCustomLocations { @Bean WebMvcConfigurer configurer { return new WebMvcConfigurerAdapter() {. RELEASE but suddenly in eclipse STS WebMvcConfigurerAdapter is marked as deprecated. as of 5. By default, all built-in converters are configured as long as the corresponding 3rd party libraries such Jackson JSON, JAXB2, and others are present on the classpath. Deprecated. Deprecated. Environment. lang. lang. lang. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter. public abstract class WebMvcConfigurerAdapter extends java. Since WebMvcConfigurerAdapter is deprecated and Java 8 brought the concept of default methods in interface, You can implement WebMvcConfigurer interface to get the work done. Deprecated. 1. See Dave Syers answer. addInterceptor(new LocaleInterceptor()); there is no way the Spring container can manage that object for you and therefore make the necessary injection into your LocaleInterceptor. 1, the WebMvcConfigurerAdapter is an implementation of WebMvcConfigurer with empty methods, which allow subclasses to override the needed methods. Spring webmvc contains Spring’s model-view-controller (MVC) and REST Web Services implementation for web applications. addFormatters ( FormatterRegistry registry) Add Converter s and Formatter s in addition to the ones registered by default. Since Spring 3. I made a previous a login and registration with security layer project in 2017 using WebMvcConfigurerAdapter, however now this has been deprecated i'm struggling to update the code. 配置类WebMvcConfigurerAdapter过期. getPath () Return the MVC path of the endpoint. WebMvcConfigurerAdapter. All Implemented Interfaces: WebMvcConfigurer. January 28, 2023 by jamezshame. lang. as of 5. 이렇게 한 이유는 interface는 구현된 메서드를 가질 수 없기 때문이다. lang. as of 5. Docs and code should be updated to use non-deprecated classes from Spring. 5 or later, WebMvcConfigurerAdapter has been deprecated. You need to declare SecurityFilterChain and WebSecurityCustomizer beans instead of overriding methods of WebSecurityConfigurerAdapter class. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. 때문에 static이라는 폴더를 찾아서 설정을 해준다면 무리없이 정적 파일이 잘 제공되는 것을 볼 수 있다. Deprecated. This may be useful for example to allow default converters to be registered and then insert a custom converter through this method. Object implements WebMvcConfigurer. as of 5. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this. boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency>. as of 5. Object implements WebMvcConfigurer. Deprecated. e hitting in browser do serves the html content. lang. as of 5. You should extend Spring MVC's WebMvcConfigurerAdapter instead. 0 public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer An implementation of WebMvcConfigurer with empty methods allowing subclasses to override only the methods they're interested in. 0 以后WebMvcConfigurerAdapter会取消掉. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. Deprecated. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter. xx(或者更低)版本升级到Spring 5. I am developing a simple project in spring but I have the following problem org. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. x, I will recommend using WebMvcConfigurer. lang. However, in recent versions, Spring deprecates this approach and encourages a component-based security configuration. For example the WebMvcConfigurerAdapter is @Deprecated: * @deprecated as of 5. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. Object implements WebMvcConfigurer. please add this below dependency to start working with Spring Security. Deprecated. An implementation of WebMvcConfigurer with empty methods allowing subclasses to override only the methods they're interested in. And so I've replaced the deprecated class with a. as of 5. " ,以及快速的分析产生这个严重. as of 5. WebMvcConfigurerAdapter配置类其实是Spring内部的一种配置方式,采用JavaBean的形式来代替传统的xml配置文件形式进行针对框架个性化定制 SpringBoot2. linedata. Deprecated. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. Add thymeleaf attributes to your Model object. servlet. 在本文中,将介绍将spring 4. Methods inherited from class org. env. @Configuration @EnableGlobalMethodSecurity ( securedEnabled = true,. lang. lang. Hm, I actually think there's a need: When you only want to add additional ResourceResolvers to a chain, which is not possible right now. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. Use Controller instead of RestController. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. Every Spring Boot release has more or less code marked as @Deprecated, Spring Boot 3. * @deprecated as of 5. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter. 10で作っていたアプリを勇んでSpring Boot 2. as of 5. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 3. 0). M5 here instructs use of Spring Web's WebMvcConfigurerAdapter, but this class was deprecated in Spring 5. extending WebMvcConfigurerAdapter is deprecated and WebMvcConfigurer has to be implemented instead. Since Spring 5. Class WebMvcConfigurerAdapter. WebMvcConfigurationSupport is the class that is imported by @EnableWebMvc so annotating your class with. as of 5. Deprecated. @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. 在本文中,将介绍将spring 4. annotation. xx(或者更低)版本升级到Spring 5. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. x. Learn more about TeamsDeprecated. lang. beans. Spring 3. servlet. as of 5. I just migrate to spring mvc version 5. All Implemented Interfaces: WebMvcConfigurer. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. Connect and share knowledge within a single location that is structured and easy to search. Change return type to String. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. Sorted by: 4. N/A. The WebMvcConfigurer has all its methods default implemented. java. 追記)2. public interface WebMvcConfigurer. 0-M2, spring has deprecated the class WebSecurityConfigurerAdapter. Object implements WebMvcConfigurer. lang. Object implements WebMvcConfigurer. Try not to use deprecated code, which is usually commented with the reason. 2. Q&A for work. xx版本升级到Spring Boot 2. Deprecated. as of 5. And specifically the Deprecated class is WebMvcConfigurerAdapter and it's method addArgumentResolvers. 1. Deprecated. x or spring-boot 2 onwards, WebMvcConfigurerAdapter is marked as deprecated. Deprecated. xx(或者更低)版本升级到Spring 5. Connect and share knowledge within a single location that is structured and easy to search. 0. as of 5. As stated above, what you should do is implementing WebMvcConfigurer and overriding addInterceptors. Using Spring 5. Following steps can be taken to implement the interceptor with Spring: Implement an interceptor class extending HandlerInterceptorAdapter class. An implementation of WebMvcConfigurer with empty methods allowing subclasses to override only the methods they’re interested in. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. org. Since: 3. We can specify additional static locations by using WebMvcConfigurerAdapter and overriding the addResourceHandlers method. lang. as of 5. Object implements WebMvcConfigurer. When you handle the object creation for yourself like in: registry. x WebMvcConfigurerAdapter is deprecated, Shoud work just implementing the WebMvcConfigurer interfafce instead of extending WebMvcConfigurerAdapter that is deprecated @Configuration public class WebMvcConfig implements WebMvcConfigurer {. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. Introduction In this quick tutorial, we’ll have a look at one of the warnings we may see when working with a Spring 5. Deprecated. as of 5. And will be removed in v17. as of 5. Deprecated. Spring 5, which has Java 8 as a baseline, took advantage of this and for several interfaces, WebMvcConfigurer is one of them, they used this. A hook for extending or modifying the list of converters after it has been configured. 1. as of 5. The type WebSecurityConfigurerAdapter is deprecated. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. Sorted by: 4. For all use cases where you might consider using AsyncRestTemplate, use the WebClient instead. Consider extending WebMvcConfigurerAdapter, which provides a stub implementation of all interface methods. core. ” ,以及快速的分析产生这个严重警告的原因和处理办法。The solution above works out of the box with Spring and Tomcat and your HTTP request to the root / is mapped automatically to the index. In Spring Boot 2. Note that WebMvcConfigurerAdapter is deprecated now (see WebMvcConfigurerAdapter). WebMvcConfigurerAdapter. @Retention ( value = RUNTIME ) @Target ( value = TYPE ) @Documented @Import ( value = DelegatingWebMvcConfiguration. 0 replacing deprecated WebMvcConfigurerAdapter is erroneous. Specified by: extendMessageConverters in interface WebMvcConfigurer. Share. Since Spring 5 with Java 8 baseline allows default methods, the adapter class HandlerInterceptorAdapter is no longer required. Instead implement WebMvcConfigurer which is also what is suggested in the deprecation documentation in the javadoc of `WebMvcConfigurerAdapter. lang. ApplicationContextAware, org. 1. Deprecated. There were some classes in the project that depended on the deprecated WebMvcConfigurerAdapter class, but I have removed the dependency and use the replacement WebMvcConfigurer interface. Spring WebMvcConfigurerAdapter, WebApplicationInitializer and DWR null beans in controller. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 1. . WebMvcConfigurerAdapter is deprecated of course and I know what to use instead of it. servlet. Object. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. lang. as of 5. Deprecated. springframework. Deprecated. lang. Deprecated. We could use the @EnableWebMvc annotation to import the configuration of this class automatically. Deprecated. WebMvcConfigurerAdapter类被弃用后的两种选择. 0. spring boot에서는 static file을 기본으로는 resource 디렉터리 내의 static이라는 폴더를 찾아서 제공을 해준다. 替代方法:实现WebMvcConfigurer接口 From spring 5. Why not using WebMvcConfigurerAdapter? Defining one configuration class per each architectural aspect of your app is better than having one God Configuration class, like your SecurityApiConfiguration which is a configuration class for security, data access and MVC, I'm afraid. Modified 4 years, 9 months ago. Teams. Migrate to Spring Framework 5. You dont have to extend your class to any predefined class. 1. Deprecated. springframework. config. lang. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. public abstract class WebMvcConfigurerAdapter extends java. This is useful in cases where there is no need for custom controller logic -- e. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. So you should remove the @EnableWebMvc annotation! @Configuration // @EnableWebMvc Remove this! public class ViewConfig implements WebMvcConfigurer { @Override public. However this excludes. 1 Answer. 5版本都是靠重写WebMvcConfigurerAdapter的方法来添加自定义拦截器,消息转换器等。SpringBoot 2. 1. Replace WebMvcConfigurerAdapter with WebMvcConfigurer. Object implements WebMvcConfigurer. Nov 13, 2020 at 7:28 | Show 5 more comments. lang. as of 5. Overview Spring Security allows customizing HTTP security for features, such as endpoints authorization or the authentication manager configuration, by. as of 5. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. springframework. 0. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 0. servlet. annotation. lang. addResourceHandler. Teams. 7. 0 后,该类被标记为@Deprecated。因此我们只能靠实现WebMvcConfigurer接口来实现。 /** * SpringBoot中访问doc. public class MvcConfig extends WebMvcConfigurerAdapter. void. 出现警告的原因 WebMvcConfigurer. You need to declare SecurityFilterChain and WebSecurityCustomizer beans instead of overriding methods of. As of 5. @EnableWebMvc -annotated configuration classes may implement this interface to be called back and given a chance to customize the default configuration. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. X,Spring 5. Spring Boot Web MVC Configuration (Web MVC 구성 ) + 사라진 WebMvcConfigurerAdapter deprecated . Deprecated. But my question is 'was the replacement not taken care in the recipe' Similarly I see that OrderImpl class from hibernate is deprecated and was not taken care by recipe. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter. 0 will completely remove code that is deprecated in 2. Deprecated. Deprecated. : @Configuration @EnableWebMvc @ComponentScan (basePackageClasses = MyConfiguration. lang. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. 0. config. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. The WebMvcConfigurerAdapter is deprecated. 0. To assist with the transition to this new style of configuration, we have compiled a list of common use-cases and the suggested alternatives going forward. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 54. 0. as of 5. What is WebMvcConfigurerAdapter? @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. Deprecated. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. 在本文中,将介绍将spring 4. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. servlet. Object implements WebMvcConfigurer. @EnableWebMvc @Configuration @Import(MyViewConfig. as of 5. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. @ortonomy WebMvcConfigurerAdapter is deprecated because the interface which it implements has now default methods (thanks to Java8). I looked at the source code of WebMvcConfigurer but I couldn't find a single method with the keyword 'default'. Deprecated. Deprecated. web. springframework. Object implements WebMvcConfigurer. context. –WebMvcConfigurerAdapter deprecated? – Pa tison. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter. lang. addArgumentResolvers ( List < HandlerMethodArgumentResolver > argumentResolvers) Add resolvers to support custom controller method argument types. 0 migration: jdbcUrl is required with driverClassName • The type WebMvcConfigurerAdapter is deprecated • No converter found capable of converting from type to type Examples related to spring-mvc @Deprecated public abstract class WebMvcConfigurerAdapter extends java. config. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. 0. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. as of 5. context. lang. io here, says my global configuration is still correct, even though WebMvcConfigurerAdapter appears to be deprecated now. as of 5. X,Spring 5. Deprecated. annotation. Class WebMvcConfigurerAdapter is deprecated as of 5. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. springframework. 3. as of 5. as of 5. springframework. 54. lang. Deprecated. 6 and missing under Spring Boot 2. as of 5. If overriding. 사라진 WebMvcConfigurerAdapter deprecated. Object implements WebMvcConfigurer. @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer An implementation of WebMvcConfigurer with empty methods allowing subclasses to override only the methods they're interested in. RELEASE. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter. Since Spring 5 you just need to implement the interface WebMvcConfigurer: public class MvcConfig implements WebMvcConfigurer { This is because Java 8 introduced default methods on interfaces which cover the functionality of the WebMvcConfigurerAdapter class On Spring Boot 3 WebSecurityConfigurerAdapter is deprecated. config. Thanks for contributing an answer to Stack Overflow! Please be sure to answer. Deprecated. See full list on baeldung. Use Environment#acceptsProfiles(Profiles) Use ObjectUtils#isEmpty(Object) Use varargs. Configuration; import org. By default, all built-in converters are configured as long as the. xx版本后会报的一个严重警告:“Warning:The type WebMvcConfigurerAdapter is deprecated. as of 5. as of 5. This is mentioned in the Spring Boot Documentation, under the spring mvc section you can use WebMvcConfigurer, but you do not need to do @EnableWebMvc. @Configuration public class WebConfig implements WebMvcConfigurer { @Override public void configurePathMatch(PathMatchConfigurer configurer) {. Thanks, this worked for me - had only to change the resourceLocation to classpath:/static/ to get it running with my React app. as of 5. x. It seems like extending WebMvcConfigurationSupport serves the purpose of @EnableWebMvc and allows selectively override any desired default implementation and in this case addResourceHandlers. Object implements WebMvcConfigurer. Actual Behavior. Apache Velocity. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. as of 5. as of 5. I just migrate to spring mvc version 5. Object implements WebMvcConfigurer An implementation of WebMvcConfigurer with empty methods allowing subclasses to override only the methods they're interested in. It combines all the advantages of the MVC pattern with the convenience of Spring. In this tutorial, we’ll go through a quick introduction of the SpringBootServletInitializer. Object implements WebMvcConfigurer. Learn more about TeamsDeprecated. web. as of 5. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends Object implements WebMvcConfigurer. Deprecated. Constructor Summary. web. as of 5. Deprecated. config. as of 5. authorizeHttpRequests ( (authz) -> authz . 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. Defines callback methods to customize the Java-based configuration for Spring MVC enabled via @EnableWebMvc. Deprecated. i. Deprecated. Add this annotation to an @Configuration class to have the Spring MVC configuration defined in WebMvcConfigurationSupport imported:. 0 WebMvcConfigurer has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this adapter @Deprecated public abstract class WebMvcConfigurerAdapter extends java. WebMvcConfigurerAdapter. as of 5. java. Deprecated.