当前位置: 代码迷 >> 综合 >> 404 The origin server did not find a current representation for the target resource or is not
  详细解决方案

404 The origin server did not find a current representation for the target resource or is not

热度:90   发布时间:2024-01-30 02:38:32.0

如果出现404 错误,并且有以下信息

Type Status Report

Message /book1/registServlet

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

那可能是在类名注解的属性写成name了,把name改成value就可以了.

@WebServlet(name = "/registServlet")
public class RegistServlet extends HttpServlet {
  相关解决方案