search

Home  >  Q&A  >  body text

java - restful 中@FormParam @RequestParam

这2种区别在那

黄舟黄舟2803 days ago822

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理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

    reply
    0
  • 怪我咯

    怪我咯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🎜🎜 🎜

    reply
    0
  • 天蓬老师

    天蓬老师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.

    reply
    0
  • Cancelreply