其他分享
首页 > 其他分享> > springBoot+thymeleaf遇到Resource interpreted as Stylesheet but transferred with MIME type text/plain

springBoot+thymeleaf遇到Resource interpreted as Stylesheet but transferred with MIME type text/plain

作者:互联网

如果你在项目中使用了拦截器,那么你的拦截器配置就应该排除拦截css静态资源,如下图所示:

这样浏览器控制台上就不会出现Resource interpreted as Stylesheet but transferred with MIME type text/plain提示了,页面也能恢复正常了。

 

标签:拦截器,Resource,springBoot,text,interpreted,Stylesheet,MIME,type
来源: https://www.cnblogs.com/JerryTomcat/p/11721258.html