JAX-RS(CXF)JSONProvider(JAX-RS(CXF) JSONProvider)
我是JAX-RS的新手,我刚刚开始使用apache CXF,我很惊讶“尝试返回”application / jason“时,”没有为响应类找到消息体编写器“。 我知道,我可以使用spring context loader文件设置JSONProvider,但我不想使用spring。 有没有办法直接将JSONProvider设置为应用程序?
I am new to JAX-RS, I am just starting with apache CXF, I am struck at "No message body writer has been found for response class" while trying to return "application/jason". I know, I can set the JSONProvider using spring context loader file, but I dont want to use spring. Is there any way to set JSONProvider to the application directly?
原文:https://stackoverflow.com/questions/17107904
更新时间:2023-05-24 22:05