혀나노트
jsp에서 F12 console창에 자꾸 js, css 500 오류 resource 연결 에러 본문
.... Refused to apply style from 'url' because its MIME type ('text/html') is not a supported ... 어쩌구..
이거 css 에러발생
GET 'url' net:: ERP_ABORTED 500 ( Internal Server Error )
는 연결할 js 에서 자꾸 에러 발생
url 을 보니깐
http://localhost:8080/resource/js/*.js
http://localhost:8080/resource/css/*.css
라고 되어 있다.
일단 jsp에서 경로가 /resource/css/style.css 라고 되어 있는걸
앞에 resource 를 지움
/css/style.css 라고 함
그랬는데 F12 에서 source 탭을 봤을 때, 연결이 안되어 있음...
src="${pageContext.request.contextPath}/resource/js/*.js" 라고 하면 잘 연결됨