Servlet获取POST方法请求体数据


if ("POST".equalsIgnoreCase(request.getMethod())) 
{
   test = request.getReader().lines().collect(Collectors.joining(System.lineSeparator()));
}

结果格式:

email=xxx%40qq.com&password=123456

来源:https://stackoverflow.com/questions/8100634/get-the-post-request-body-from-httpservletrequest


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM