这2种区别在那
人生最曼妙的风景,竟是内心的淡定与从容!
Parameter location, form data is in the HTTP body, and the one in the URL is called query param
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) 的
@FormParam
@RequestParam
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.
Parameter location, form data is in the HTTP body, and the one in the URL is called query param
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🎜🎜 🎜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.