Using @Consume with GET request in Jersey Rest

后端 未结 5 633
夕颜
夕颜 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条回答
  •  -上瘾入骨i
    2021-02-10 16:35

    GET request cannot consume any entity. Instead, use POST or PUT methods (provided request is for insert or update). Otherwise, go with standard way of passing attributes in URL.

提交回复
热议问题