JAVA/Spring 4.0
Spring4.0 resources 경로이용하기
왕왕왕왕
2015. 9. 16. 19:37
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<p>아이디 ${id} </p>
<img alt="d" src="resources/image/king.jpg">
</body>
</html>
Servlet-context.xml에 resources 매핑이 되있어서
뷰페이지에서는 상대경로를 찾을 필요 없이 바로 resources부터 경로를 써주면된다.