JAX-RS how to transfer data in JSON format?

If you specify the client to get json content

错误:Caused by: javax.ws.rs.ProcessingException: No message body writer has been found

for class cn.itcast.cxf.domain.User, ContentType: application/json

Solution: introducing json converter project

Guess you like

Origin blog.csdn.net/qq_40208605/article/details/90748794