F12控制台:Failed to load resource: the server responded with a status of 404 ()
F12控制台:Failed to load resource: the server responded with a status of 404 ()

这种错误一般有几种情况:

  • server的虚拟目录用错了:
    正确输入要使用的server所对应的虚拟目录
    (如果想启动day08这个服务,却输入了day09的虚拟目录来访问day08的内容就会报错)
    F12控制台:Failed to load resource: the server responded with a status of 404 ()

F12控制台:Failed to load resource: the server responded with a status of 404 ()

  • html页面中的form表单的action写错了,导致服务器无法找到对应servlet
    F12控制台:Failed to load resource: the server responded with a status of 404 ()
    正确的是:
    F12控制台:Failed to load resource: the server responded with a status of 404 ()

  • Servlet的@WebServlet写错了
    正确的是:
    F12控制台:Failed to load resource: the server responded with a status of 404 ()

相关文章:

  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-01-17
猜你喜欢
  • 2021-12-22
  • 2021-03-31
  • 2022-12-23
相关资源
相似解决方案