Add explanation to https://spring.io/guides/gs/testing-web/ about the causes of HttpMediaTypeNotAcceptableException or HttpMessageNotWritableException when using @SpringBootTest with @AutoConfigureMockMvc, and what to do about it (probably just adding @AutoConfigureWebMvc).
This was suggested in spring-projects/spring-boot#24000 (comment)