我有一个spring引导应用程序,下面是资源处理程序注册的代码:public class MyAppConfig extends WebMvcConfigurerAdapter//in same directory where all the js files placed,
//I want to cache all the files in that/js/prop.js</
No matter what I正在做,我总是得到同样的错误,同时试图注册我的服务生。DOMException:未能注册一个ServiceWorker:脚本有一个不支持的MIME类型('text/html')。
在我做了一些研究之后,大多数解决方案都是由开发环境造成的。这是真的吗?如果是这样的话,我如何在dev环境中注册服务工作人员,特别是工作箱。我的index.js中的代码</