Reputation: 111
I've got the following problem on every single page I am trying to access
WARNING [http-nio-8080-exec-7] org.springframework.web.servlet.PageNotFound.noHandlerFound No mapping found for HTTP request with URI [/cart/%3Cc:url%20value='/resources/css/bootstrap.css'%20/%3E] in DispatcherServlet with name 'springmvc-dispatcher
There are warnings, but those resources are visible (both css and scripts are working, still gives errors), and I have nothing underlined in jsp files.
<link href="<c:url value='/resources/css/bootstrap.css' />" rel="stylesheet"/>
<script src="<c:url value="/resources/js/controllers.js"/>"></script>
I have above paths to css and js in every jsp file.
Project-Structure
And my filter mapping:
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Upvotes: 0
Views: 1032
Reputation: 321
You haven't used DispatcherServlet in your mapping. Just try this.
<servlet>
<servlet-name>appServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
Upvotes: 1