My jsp loads some additional file like css and js files like almost every website does with something like this:
<script src="js/dhtmlx/dhtmlx.js"></script>
The problem now is, that Spring wants to dispatch the request and isn't finding a proper handler for it, which is right. I tried the following in my config-class:
@Override
public void addResourceHandlers(final ResourceHandlerRegistry registry) {
registry.addResourceHandler("/js/**").addResourceLocations("/js/");
}
which is not working, spring still wants to dispatch the request:
org.springframework.web.servlet.PageNotFound noHandlerFound
WARNING: No mapping found for HTTP request with URI [...URI/js/dhtmlx/dhtmlx.css] in DispatcherServlet with name 'keza'
How can I tell spring that this is not a request which the framework should dispatch with the dispatcherServlet?
addResourceHandlers, it looks like it was ignored by Spring ... and what exactly is the error when you usesrc="/js/...?