大家讲道理2017-04-17 17:48:17
Parameter location, form data is in the HTTP body, and the one in the URL is called query param
怪我咯2017-04-17 17:48:17
I don’t know what MVC framework the poster is using. Different frameworks have different annotations, and their meanings are also different.
looks
@FormParam
is for Jersey (JAX-RS)@FormParam
是 Jersey(JAX-RS) 的
@RequestParam
@RequestParam
is SpringMVC’s🎜🎜
🎜天蓬老师2017-04-17 17:48:17
1.@FormParam is a form parameter, which is similar to the data transmitted by the form form in the HTML page.
2. What is @RequestParam? The parameters after are the parameters that follow the URL.