Error: Failed to load resource: net::ERR_FILE_NOT_FOUND
1. Errors due to code formatting problems!


2. Errors caused by forgetting the code function!


It should return an array.
Modified to :

Error: Failed to load resource: net::ERR_FILE_NOT_FOUND




It should return an array.
Modified to :

Failed to load resource: the server responded with a status of 404 ()
There is a problem with server compilation. Some resources are not compiled in the server compilation and packaging, resulting in no accessed resources in the server.
Solution:
1. Put the resources that cannot be scanned into the corresponding location of the out folder
For example:

Put the folder at (1) on (2)
Method 2:
Repackage
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.jpg</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.js</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.css</url-pattern>
</servlet-mapping>
The second:
spingmvc.xml
<!-- Accessing Static Resource Configuration -->
<mvc:resources location="/static/" mapping="/static/**" />