摘要: 在SpringMVC后台控制层获取参数的方式主要有两种,一种是request.getParameter("name"),另外一种是用注解@RequestParam直接获取。这里主要讲这个注解 一、基本使用,获取提交的参数 后端代码: Java代码 @RequestM... 阅读全文
posted @ 2018-05-29 17:33 宝贝企鹅 阅读(2498) 评论(0) 推荐(0)
摘要: v1.指定为 post 请求,输入 url Content-Type: application/x-www-form-urlencoded;charset=utf-8 request body中的参数格式:userName=adminicxp&userPasswo... 阅读全文
posted @ 2018-05-29 15:40 宝贝企鹅 阅读(239) 评论(0) 推荐(0)