Unsupported Media Type error in Quarkus
Purpose: In this post, we will learn how we can resolve the given below error.
Error:
Could not find MessageBodyWriter for response object of type: java.util.Collections$SetFromMap of media type: text/html;charset=UTF-8
Next Step. If you have given below project dependency. Please remove this and add the given below.
<dependency><groupId>io.quarkus</groupId><artifactId>quarkus-resteasy</artifactId></dependency>
Remove above dependency if present and add below.
<dependency><groupId>io.quarkus</groupId><artifactId>quarkus-resteasy-jackson</artifactId></dependency>
Test API.
Download Code from GitHub. Source Code
No comments:
Post a Comment