Replace usage of WebMvcConfigurerAdapter

Closes gh-8964
This commit is contained in:
Madhura Bhave
2017-04-24 15:31:00 -07:00
parent ec57c3d92a
commit c2e5fd031a
19 changed files with 45 additions and 46 deletions

View File

@@ -30,7 +30,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import static org.assertj.core.api.Assertions.assertThat;
@@ -155,7 +155,7 @@ public class WebMvcTypeExcludeFilterTests {
}
static class ExampleWeb extends WebMvcConfigurerAdapter {
static class ExampleWeb implements WebMvcConfigurer {
}

View File

@@ -26,7 +26,6 @@ import org.springframework.web.context.request.NativeWebRequest;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.method.support.ModelAndViewContainer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
/**
* Example {@link WebMvcConfigurer} used in {@link WebMvcTest} tests.
@@ -34,7 +33,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
* @author Phillip Webb
*/
@Component
public class ExampleWebMvcConfigurer extends WebMvcConfigurerAdapter {
public class ExampleWebMvcConfigurer implements WebMvcConfigurer {
@Override
public void addArgumentResolvers(