日常问题记录--POST时,struts2的 request.getParameter找不到参数
问题:
struts2的 request.getParameter找不到参数
解决办法:
http包中当为post方法时,head中必须有Content-Type: application/x-www-form-urlencoded字段。
否则无法解析request body字段;
不会炒菜的非专业测试人员
问题:
struts2的 request.getParameter找不到参数
解决办法:
http包中当为post方法时,head中必须有Content-Type: application/x-www-form-urlencoded字段。
否则无法解析request body字段;