Spring MVC CSS/JS not found
<p>In my maven Spring Project in netbeans  CSS/Js file not opening ..
web.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"&gt;
&lt;display-name&gt;OrderManager&lt;/display-name&gt;     
&lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
&lt;/listener&gt;    
&lt;servlet&gt;
    &lt;servlet-name&gt;SpringConfiguration&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet &lt;/servlet-class&gt;       
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;
&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;SpringConfiguration&lt;/servlet-name&gt;     
    &lt;url-pattern&gt;/&lt;/url-pattern&gt;      
&lt;/servlet-mapping&gt; 
</code></pre>

<p></p>

<p>SpringConfiguration-servlet.xml</p>

<pre><code>e&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd  http://www.springframework.org/schema/mvc  http://www.springframework.org/schema/mvc/spring-mvc.xsd  http://www.springframework.org/schema/context  http://www.springframework.org/schema/context/spring-context.xsd"&gt;

                &lt;context:component-scan base-package="com.ordermanager.users.controller" /&gt;                     
                &lt;bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
                                    &lt;property name="viewClass"  value="org.springframework.web.servlet.view.JstlView" /&gt;
                                    &lt;property name="prefix" value="/WEB-INF/" /&gt;
                                    &lt;property name="suffix" value=".jsp" /&gt;
                &lt;/bean&gt; 
                &lt;mvc:annotation-driven/&gt;
                &lt;mvc:resources mapping="/resources/**" location="/resources/**"/&gt;
</code></pre>

<p></p>

<p>Project Folder
<a href="https://i.stack.imgur.com/Bh4VY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Bh4VY.png" alt="enter image description here"></a></p>

<p>i cant able access any css or JS file even after  controller and other function working fine ..
but if i open the following url in browser 
<a href="http://localhost:8080/OrderManager/resources/css/loginpagestyle.css" rel="nofollow noreferrer">http://localhost:8080/OrderManager/resources/css/loginpagestyle.css</a>, it's showing not 404 found.</p>