Hi Charles
You can return as a @Bean or use
jaxrs.classes-scan
http://cxf.apache.org/docs/springboot.html#SpringBoot-AdditionalConfiguration.1
(JsrJsonpProvider works with the specific API, you probably want to try
Jackson or some other JSON provider which can work with the beans)
Cheers, Sergey
On 20/03/17 21:29, cmoulliard wrote:
Hi,
How can we register a JsonProvider for a Spring Boot application using the
CXF Starter in order to avoid this error
No message body writer has been found for class
org.jboss.snowdrop.springboot.rest.cxf.service.Greeting
for the class which contains the model of the class to be process as json
response result.
I suppose that this provider should be injected
"org.apache.cxf.jaxrs.provider.jsrjsonp.JsrJsonpProvider"
Regards
Charles
--
View this message in context:
http://cxf.547215.n5.nabble.com/No-message-body-writer-has-been-found-for-class-org-jboss-snowdrop-springboot-rest-cxf-service-Greetg-tp5778192.html
Sent from the cxf-user mailing list archive at Nabble.com.