diff --git a/test/src/test/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessorsCsrfTests.java b/test/src/test/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessorsCsrfTests.java index f79d73b90d..d1d3c5562d 100644 --- a/test/src/test/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessorsCsrfTests.java +++ b/test/src/test/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessorsCsrfTests.java @@ -228,11 +228,6 @@ public class SecurityMockMvcRequestPostProcessorsCsrfTests { protected void configure(HttpSecurity http) throws Exception { } - @Bean - public TheController controller() { - return new TheController(); - } - @RestController static class TheController { @RequestMapping("/")