How do I read POST parameters for a RESTful service using Jersey?

前端 未结 4 721
南方客
南方客 2020-12-16 10:35

I am not using JSON or anything like that. I have a simple form to upload a file and I want to read the parameters of the form. The code below is not working as expected.

4条回答
  •  温柔的废话
    2020-12-16 10:53

    FYI, You need to use @FormParam. Also make sure INPUT HTML types are using name= not id=.

提交回复
热议问题