访问自己建立的页面时报这些错误
Refused to apply style from 'http://localhost:8080/XXX.css' because its MIME type ('text/html') i...
Refused to apply style from 'http://localhost:8080/XXX.html' because its MIME type ('text/html') i...
可能是项目的打包时,这些文件没有加进去。
解决方法:在pom.xml下配置