How to include resources files in JSP Spring MVC
Configure the root resource folder in your dispatcher class (default servlet-context.xml)
<resources mapping="/resources/**" location="/resources/" />
Add your resources file under "resources" folder
In your jsp file
1.
Add below code on the most top .jsp file
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
2.
Javascript
<script type="text/javascript"
src="<c:url value="/resources/jquery/jquery-1.11.1.min.js"
/>"></script>
3.
CSS
<link href="<c:url value="/resources/form.css"
/>"
rel="stylesheet" type="text/css"
/>