62,620
社区成员
发帖
与我相关
我的任务
分享 protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String[] query = request.getQueryString().split("\\|");
response.getWriter().println(query.length > 1 ? query[1] : null);
}
String s = "http://localhost:8080/answer/?2|1";
System.out.println(s.substring(s.indexOf("|")+1));
好好学习,自己多思考,而不是直接上来就问