问题描述
在使用Quarkus远程Rest调用时,报错Could not find MessageBodyWriter for response object of type: XXX of media type: application/json
解决办法
导入以下依赖即可
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-jackson</artifactId>
</dependency>