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
Try this one to disable the spring boot security for testing
@AutoConfigureMockMvc(secure = false)
@RunWith(SpringRunner.class) @WebMvcTest(SampleController.class) @AutoConfigureMockMvc(secure = false) public class SampleControllerIntegrationTest {