jsp中引入jquery报错:Failed to load resource: the server responded with a status of 404 ()

在applicationContext.xml中加入mvc:default-servlet-handler/
jsp中引入jquery报错:Failed to load resource: the server responded with a status of 404 ()

/属于rest风格,即dispatcherServlet将处理所有web容器的请求,当请求加载静态资源jquery.js时,控制器类中没有写,因此会提示【Failed to load resource: the server responded with a status of 404 (Not Found)】,如果是传统的风格,非rest,一般静态资源时web容器自己就会加载。