事情是这样的 我自己写了一个demo 是前后端分离的项目 前端打包后放到了java中。maven里面用的是tomcat7插件。运行的时候正常 然后我想发布到我的虚拟机里面。虚拟机里面的环境和我本机是一样的 tomcat版本不一样,虚拟机tomcat版本是8 然后在虚拟机里面显示白屏。然后报错 
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
原因是因为我写的filter过滤器的问题

现在去掉就ok啦
但是我有个疑问 为什么在tomcat7中可以这样写 在tomcat8中不能呢。 百度了一天了 始终找不到问题产生的原因。
是因为tomcat8的规范比tomcat7严格吗 但是官方也没提HTML规范啊 难搞 请求大佬指点一二,谢谢啦🙏🙏🙏

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
原因是因为我写的filter过滤器的问题

现在去掉就ok啦
但是我有个疑问 为什么在tomcat7中可以这样写 在tomcat8中不能呢。 百度了一天了 始终找不到问题产生的原因。
是因为tomcat8的规范比tomcat7严格吗 但是官方也没提HTML规范啊 难搞 请求大佬指点一二,谢谢啦🙏🙏🙏












