谁能给我一个URL HTTP协议的接口 要实际案列或者webservice URL传参实际案例都行 URL?A=1 返回的是xml

2025-02-24 21:29:52
推荐回答(2个)
回答1:

前台请求--->'

后台代码--->@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这两个参数了
希望能帮到你!!!

回答2:

谁能给我一个URL 接口是用notify_url还是return_url。 2. notify_ur