I am new to Spring mvc. I want to add css and js files in jsp. It's a spring mvc framework. This is my spring-dispatcher-servlet.xml code
<mvc:annotation-driven />
<mvc:resources location="/resources/**" mapping="/css/**"/>
SpringDemo is my project name folder. I keep my file in SpringDemo/WebContent/resources/css and in the same location i keep my js file also SpringDemo/WebContent/resources/js
Below code is jsp file called RegistrationForm.jsp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="WebContent/resources/css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/SpringDemo/js/jquery.min.js"></script>