새소식

Framework/🍃 Spring

[Solved] org.springframework.web.HttpMediaTypeNotSupportedException

  • -
728x90

🔥 Problem

👉 org.springframework.web.HttpMediaTypeNotSupportedException

org.springframework.web.HttpMediaTypeNotSupportedException
Resolved [org.springframework.web.HttpMediaTypeNotSupportedException:
Content-Type 'multipart/form-data;boundary=--------------------------
407531386842205423562378;charset=UTF-8' is not supported]

Cause of error

👉 I'll pretend I didn't see your mistake :)

Maybe you made the announcement as below.

이런 코드를 만드셨나요?

 

@RestController is intended to avoid declaring @ResponseBody in each function.
@RestController is a combination of @Controller and @ResponseBody.

🧙 Solution

👉 If you use @RestController, please delete the @ResponseBody announcement.

 

 

If I was of any help to you, please buy me coffee 😿😢😥

If you have any questions, please leave them in the comments

🧭 References

[1] reference : https://doctorson0309.tistory.com/

[2] Ads : https://play.google.com/store/apps/details?id=io.cordova.seoulfilter

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.