Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

혀나노트

jsp에서 F12 console창에 자꾸 js, css 500 오류 resource 연결 에러 본문

카테고리 없음

jsp에서 F12 console창에 자꾸 js, css 500 오류 resource 연결 에러

_혀나_ 2023. 4. 14. 15:36

.... 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" 라고 하면 잘 연결됨