net::ERR_ABORTED ,引入js文件出现报错的解决方法

在head头里面添加

<mvc:annotation-driven enable-matrix-variables="true"></mvc:annotation-driven>
<context:component-scan base-package="com.th.action"></context:component-scan>
<mvc:default-servlet-handler/>

三行代码,对比自己head头,没有的放进去就好了,实测有效。

猜你喜欢

转载自www.cnblogs.com/GP1014336455/p/9778770.html