SpringMvc中,在没有设置拦截特殊的请求时,会默认拦截所有请求,包括js和图片等静态请求,造成资源查询失败404错误    (http://localhost:8080/SSHA/js/jquery.js Failed to load resource: the server responded with a status of 404 (Not Found))。

  较好的解决方案是设置SpringMvc拦截特定请求,如设置只拦截以.do结尾的请求:

关于SpringMvc中js和图片路径正确但是不能加载的问题

相关文章:

  • 2021-07-25
  • 2021-11-16
  • 2021-09-12
  • 2021-06-20
  • 2021-06-27
  • 2021-03-30
  • 2022-12-23
  • 2021-10-02
猜你喜欢
  • 2022-01-23
  • 2021-08-05
  • 2021-12-06
  • 2021-10-23
  • 2022-01-29
  • 2022-12-23
相关资源
相似解决方案