title: No mapping found for HTTP request URI[js & css] in DispatcherServlet with name 'dispatcher'
body: <p>I know this question have been ask many times but i still can't anything to solve my problem. I get this error when i try to access from index.jsp to all.jsp. I find it weird that my index.jsp able to load all those resources(css &amp; js) but when i access all.jsp I'm unable to load all my resources.</p>
  
  <p>My Explorer path</p>
  
  <p><a href="https://i.stack.imgur.com/GBW13.png" rel="nofollow noreferrer">project explorer</a></p>
  
  <p>web.xml</p>
  
  <pre><code>&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;dispatcher&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;2&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;session-config&gt;
      &lt;session-timeout&gt;
          30
      &lt;/session-timeout&gt;
  &lt;/session-config&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;redirect.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p>dispatcher-servlet.xml</p>
  
  <pre><code>&lt;bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/&gt;
  
  &lt;context:component-scan base-package="controller"/&gt;
  &lt;mvc:annotation-driven/&gt;
  &lt;mvc:resources location="/assets/" mapping="/assets/**"/&gt;
  
  &lt;bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"/&gt;
  
  &lt;bean id="viewResolver" 
        class="org.springframework.web.servlet.view.InternalResourceViewResolver"
        p:prefix="/WEB-INF/jsp/"
        p:suffix=".jsp" /&gt;
  </code></pre>
  
  <p>all.jsp </p>
  
  <pre><code>&lt;link rel="stylesheet" href="assets/tether/tether.min.css"&gt;
  </code></pre>
  
  <p>Error message</p>
  
  <pre><code>Warning:   No mapping found for HTTP request with URI [/smartcoursesystem/university/assets/tether/tether.min.css] in DispatcherServlet with name 'dispatcher'
  </code></pre>
  
  <p>UPDATE :</p>
  
  <p>I just found out that the problem is if there is two RequestMapping in a controller I'm not able to access to the resources(css &amp; js).My HomeController only one RequestMapping whereas my universityController using two RequestMapping.Still, I don't have a solution. Any solution? Please help...thanks</p>
  
  <p>HomeController</p>
  
  <pre><code>@Controller
  @RequestMapping(value="/home")
  public class homeController {
  
  @RequestMapping(method=RequestMethod.GET)
  public String getCount(Model m){
  
      universityModel model1 = new universityModel();
      courseModel model2 = new courseModel();
      m.addAttribute("countUniv", model1.countUniv());
      m.addAttribute("countCrs", model2.countCrs());
  
      return "index";
  }
  
  }
  </code></pre>
  
  <p>universityController</p>
  
  <pre><code>@Controller
  @RequestMapping(value="/university")
  public class universityController {
  
  public static String entity_name = "University";
  
  @RequestMapping(value="/all", method=RequestMethod.GET)
  public String getAll(Model m){
  
      universityModel model = new universityModel();
      m.addAttribute("univList", model.getAll());
      m.addAttribute("entity", entity_name);
      m.addAttribute("count", model.countUniv());
  
      return "all";
  }
  }
  </code></pre>