How do I use the Jersey JSON POJO support?

前端 未结 11 1828
离开以前
离开以前 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:59

    Moving jersey-json dependency to the top of the pom.xml solved this problem for me.

    
      
        com.sun.jersey
        jersey-json
        1.18.1
      
    
      
    
    
    

提交回复
热议问题