org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported

GitHub | liuxinjie123 | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Check if your DTO has a default constructor with getters and setters. Check as well if you have more than one @JsonBackReference in the same class and if there's a @JsonManagedReference that matches it!
  2. 0

    lombok @RequiredArgsConstructor @Nonnull Content type 'application/json;charset=UTF-8' not supported

    GitHub | 9 months ago | liuxinjie123
    org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported
  3. 0

    spring mvc post refuses json

    Stack Overflow | 2 years ago | sonoerin
    org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring PUT Request: Unsupported Media Type (Code: 415)

    Stack Overflow | 2 years ago
    org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported
  6. 0

    415 Unsupported Media Type when I send json to spring controller

    Stack Overflow | 2 years ago
    org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported

  1. tomthomas 12 times, last 1 month ago
  2. Axelo 1 times, last 2 months ago
  3. qavid 2 times, last 11 months ago
13 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.web.HttpMediaTypeNotSupportedException

    Content type 'application/json;charset=UTF-8' not supported

    at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters()
  2. Spring MVC
    RequestResponseBodyMethodProcessor.resolveArgument
    1. org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(AbstractMessageConverterMethodArgumentResolver.java:235)[spring-webmvc-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:149)[spring-webmvc-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3. org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:127)[spring-webmvc-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3 frames