java - restful 中@FormParam @RequestParam
黄舟
黄舟 2017-04-17 17:46:17
0
3
733

这2种区别在那

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all (3)
大家讲道理

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

    • @FormParamis for Jersey (JAX-RS)@FormParam是 Jersey(JAX-RS) 的

    • @RequestParam

    @RequestParamis SpringMVC’s
      Peter_Zhu

      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.

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!