@Inherited @Documented @ImportAutoConfiguration @Target(value=TYPE) @Retention(value=RUNTIME) public @interface AutoConfigureErrors
Auto-configuration imports to enable web error handlers
support for Spring MVC and Web Flux tests. Suppose you're going to test a controller named UserController:
@AutoConfigureErrors
@RunWith(SpringRunner.class)
@WebMvcTest(UserController.class)
public class UserControllerIT {
// test stuff
}
Copyright © 2019. All rights reserved.