Spring Boot - Testing Spring Boot Applications
You want to test a controller that uses Spring Security for authentication. Using
@WebMvcTest, what additional configuration is needed to test secured endpoints?