How do I use the Jersey JSON POJO support?

前端 未结 11 1827
离开以前
离开以前 2020-11-27 12:24

I have an object that I\'d like to serve in JSON as a RESTful resource. I have Jersey\'s JSON POJO support turned on like so (in web.xml):

  
         


        
11条回答
  •  感情败类
    2020-11-27 12:49

    I'm new to this but I was able to use POJOs after adding the jackson-all-1.9.0.jar to the classpath.

提交回复
热议问题