谁能给我一个URL HTTP协议的接口 要实际案列或者webservice URL传参实际案例都行 URL?A=1 返回的是xml
展开全部
前台请求--->'
后台代码--->@RequestMapping("/info.do")
public void loginInfo(HttpServletRequest request, HttpServletResponse response) throws Exception{
response.setCharacterEncoding("UTF-8");
String username = request.getParameter("username")==null?"0":request.getParameter("username");
String password = request.getParameter("password")==null?"0":request.getParameter("password");
}
这样后台就接收到 username和password这两个参数了
希望能帮到你!!!
后台代码--->@RequestMapping("/info.do")
public void loginInfo(HttpServletRequest request, HttpServletResponse response) throws Exception{
response.setCharacterEncoding("UTF-8");
String username = request.getParameter("username")==null?"0":request.getParameter("username");
String password = request.getParameter("password")==null?"0":request.getParameter("password");
}
这样后台就接收到 username和password这两个参数了
希望能帮到你!!!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询