Skip to content

Mention solution to common pitfall in "Testing the Web Layer" #31

@rehevkor5

Description

@rehevkor5

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions