0
나는 아주 간단한 webapp을 가지고 있으며 서버에서 .js 및 .css 파일을 <script>
및 <link>
태그로 가져올 수 없습니다. 오류 : GET http://localhost:8080/resources/js/lib.js 404 (Not Found)
js 및 css 리소스를 찾을 수 없습니다. - 404를 얻으십시오.
이 내 index.jsp가 있습니다 :
<html>
<head>
<jsp:include page="/pages/general/scripts.jsp"/>
</head>
<body>
...
</body>
</html>
이이 scripts.jsp :
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="/resources/js/lib.js"></script>
<link rel="stylesheet" type="text/css" href="/resources/css/style.css">
내 파일 :
내가 무엇이다 여기 잘못있는거야?
편집 : btw, 내가 확인하고 쉽게 자신의 URL로 파일에 연결할 수 있습니다. localhost : 8080/myApp/resources/js/lib.js에 액세스하면 파일의 내용을 볼 수 있습니다.