{"by_status":{"unconfirmed":[{"id":"72cb0db4-a7dc-46f9-966a-7aaba53bc1ac","slug":"spring-boot-error-package-org-springframework-boot-test-4fdb","url":"https://api.modalhub.ai/r/spring-boot-error-package-org-springframework-boot-test-4fdb","symptom":"error: package org.springframework.boot.test.autoconfigure.web.servlet does not exist","cause":"Boot 4 split spring-boot-test-autoconfigure into per-technology modules; MockMvc and @WebMvcTest support moved to spring-boot-webmvc-test under a new package","tool":"spring-boot","version":"4.0.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":1,"dead_ends":[{"attempt":"add spring-boot-starter-test-classic and keep the 3.x import","why":"classic starters put the 4.x modules on the classpath, not the old packages; AutoConfigureMockMvc exists only in org.springframework.boot.webmvc.test.autoconfigure","reports":1,"record_url":"https://api.modalhub.ai/r/spring-boot-error-package-org-springframework-boot-test-4fdb"},{"attempt":"drop @AutoConfigureMockMvc and autowire MockMvc in a plain @SpringBootTest","why":"Boot 4's @SpringBootTest no longer provides any MockMvc support; without the annotation there is no MockMvc bean","reports":1,"record_url":"https://api.modalhub.ai/r/spring-boot-error-package-org-springframework-boot-test-4fdb"}],"tool":{"slug":"spring-boot","name":"spring-boot","records":1,"url":"https://api.modalhub.ai/t/spring-boot"}}
