JAVA获取请求链接中所有参数(GET请求)

Posted pxblog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JAVA获取请求链接中所有参数(GET请求)相关的知识,希望对你有一定的参考价值。

Enumeration<String> paraNames=request.getParameterNames();

for(Enumeration<String> e=paraNames;e.hasMoreElements()){

        String thisName=e.nextElement().toString();  //name名
 
        String thisValue=request.getParameter(thisName);   //name名对应的值


    }

  

以上是关于JAVA获取请求链接中所有参数(GET请求)的主要内容,如果未能解决你的问题,请参考以下文章