I had the same problem ... Decided to add
<mvc:annotation-driven/>
I also specified the caching period for the browser ... But it comes to different browsers in different ways: it immediately reached FF and in 10 minutes chrome.
<mvc:resources mapping="/resources/**" location="/resources/" cache-period="10"/>
Also changed the configuration:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd">
src/webapp/resources. In JSP, be sure to specify the link in the context context path. - enzosrc/main/resourcesdirectory usually stores configuration files and resources that later fall into the application classpath. These are the authors of the documentation or educational articles. I don’t know why they called the folder where the static resources are also stored -resources, which confuses newbies - you are not the first. Reassign it tostaticorassetsso as not to be confused. - enzo