Guys I also have a problem loading static resources.
I think everything is set up correctly for me. But I do not understand the location attribute mvc: resources . What is this for?
if I have static resources at VAADIN / themes / theme / ... (in several subfolders, images, css, js), what should be the correct values for the location and display attributes?
When I have the following settings:
<mvc:resources location="/VAADIN/" mapping="/VAADIN/**"/>
he does not work. I believe the following part of the log is related:
17:15:02.897 [http-8080-2] DEBUG o.s.w.s.m.a.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#6': no
URL paths identified
I am getting HTTP 404 status , for example. http://127.0.0.1/VAADIN/themes/theme/css/style.css
matus source
share