Using @Consume with GET request in Jersey Rest

后端 未结 5 644
夕颜
夕颜 2021-02-10 16:05

I\'m trying to bind values in a GET request to a POJO.

The values are parameters in a HTTP GET request. I\'m using JSONP to pass the parameters however it looks like JS

5条回答
  •  死守一世寂寞
    2021-02-10 16:52

    HTTP GET by specification includes the parameters in the URL - therefore it only accepts value pairs. So, what you are trying to do is not feasible. why don't you use a POST instead to bundle a JSON object together with the request?

提交回复
热议问题