First use the html page in the templates to access the static resources, and then go to Baidu for various answers,
Then the answer is nothing more than the above-mentioned writing methods, or adding a static access path in the configuration file. If it is possible, it means that there is still a problem with the writing method, which is not careful enough.
if still 404
Notice! ! ! ! !
At this time, go to your pom.xml to see if the package path and your project name are consistent with the current one. If they do not match, a miracle will happen after the modification! !