SpringMVC找不到JS文件,搞了半天。
浏览器控制台报错信息:
jquery-1.11.0.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
json2.js Failed to load resource: the server responded with a status of 404 (Not Found)
converter:10 Uncaught ReferenceError: $ is not defined
控制台报错信息:
23:26:19,033 WARN [org.springframework.web.servlet.PageNotFound] (default task-5) No mapping found for HTTP request with URI [/springmvc/js/jquery-1.11.0.min.js] in DispatcherServlet with name 'springmvc'
23:26:19,043 WARN [org.springframework.web.servlet.PageNotFound] (default task-6) No mapping found for HTTP request with URI [/springmvc/js/json2.js] in DispatcherServlet with name 'springmvc'