WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI ...

조회 8,951 · 댓글 0
¯¯\_(ツ)_/¯작성자2018년 1월 11일
js, css 파일을 resources 하위에 두었을 때...


컨텐츠 표시도 안되고...



WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/js/bootstrap/bootstrap.min.js] in DispatcherServlet with name 'appServlet'

WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/js/bootstrap/bootbox.min.js] in DispatcherServlet with name 'appServlet'
WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/css/home/common.css] in DispatcherServlet with name 'appServlet'
WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/css/jquery/menu.css] in DispatcherServlet with name 'appServlet'
WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/css/bootstrap/bootstrap.iso.css] in DispatcherServlet with name 'appServlet'



이런 에러가 난다면...


servlet-context.xml 파일에 추가한다...






<resources location="/resources/js/" mapping="/js/**" />
<resources location="/resources/css/" mapping="/css/**" />

로그인 후 답글을 남길 수 있습니다.