You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by bharath T <th...@gmail.com> on 2023/02/23 13:54:39 UTC
Latest Version - JSON REST Issue
I am using below versions of spring boot and cxf and getting the following
error .Please suggest.
*No message body writer has been found for class
com.bharath.restws.model.Patient, ContentType: application/json*
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>*3.0.2*</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>*17*</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>*cxf-spring-boot-starter-jaxrs<*/artifactId>
<version>4.0.0</version>
</dependency>
<!--
https://mvnrepository.com/artifact/com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider
-->
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>*jackson-jaxrs-json-provider*</artifactId>
</dependency>