there is no problem when writing a static page, but when you put the whole project into tomcat and visit it again, you will find that css does not work. Later, you can find the problem and can be loaded into the css file, but the file content is empty. But in network, you can see that the css file contains content, and there is only one css file. I do not know why. The console screenshot is as follows: