servlet 的响应对象调用sendRedirect 提示Invalid character constant,方法中的字符串要用双引号,不能用单引号
修改后
HTTP Status 405 - HTTP method GET is not supported by this URL
重新httpServlet的方法时,如果是自动生成的,在doGet方法中有
super.doGet(req, resp);
去掉后就不会出现该问题了
servlet 的响应对象调用sendRedirect 提示Invalid character constant,方法中的字符串要用双引号,不能用单引号
修改后
重新httpServlet的方法时,如果是自动生成的,在doGet方法中有
super.doGet(req, resp);
去掉后就不会出现该问题了