I\'m trying to create a simple spring boot web project with security. I can launch the application fine and the security is working fine. However, I have some components t
In my case, @AutoConfigureMockMvc(addFilters = false) helped me.
Example:
@WebMvcTest(MyController.class)
@AutoConfigureMockMvc(addFilters = false)
@TestPropertySource(locations="classpath:application-test.properties")
public class MyControllerTests {