Error parsing JSON param in java REST

后端 未结 2 1956
暖寄归人
暖寄归人 2020-12-04 03:51

I have recently upgraded my REST API to use jersey 2.x and now I am unable to retrieve JSON body params the way I used to, the methods simply do not get called anymore. My g

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 04:16

    You may be missing Jersey JSON Jackson (2.x) entity providers support module:

    
        org.glassfish.jersey.media
        jersey-media-json-jackson
        2.19
        compile
    
    

    It is recommended to use the same Jersey version in all libs.

提交回复
热议问题