Add @AutoConfigureMockMvc to @SpringBootTest classes that inject MockMvc or MockMvcTester
ProprietarySpring Boot 4 no longer configures MockMvc for @SpringBootTest. Adds @AutoConfigureMockMvc to @SpringBootTest classes that inject MockMvc or MockMvcTester, and spring-boot-starter-webmvc-test, which provides it in Spring Boot 4, to the test dependencies of their modules once they are on Spring Boot 4.
io. moderne. java. spring. boot4. AddAutoConfigureMockMvcmod run . --recipe= io. moderne. java. spring. boot4. AddAutoConfigureMockMvcInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.