从Tomcat /
目录移动我的Web项目之后到子文件夹/WebApp
我得到一个错误GET http://localhost:8080/partials/view-worker-apps-used.html 404 (Not Found)
Web服务器AngularJs GET找不到404
这是我的项目结构:
- WebApp
- partials
- view-worker-details.html
- view-worker-apps-used.html
- js
- controlers.js
- services.js
- index.html
- 首先我负载
http://localhost:8080/WebApp/#/screen2
这是view-worker-details.html被注入到index.html中$routeProvider
- 在载入的view-worker-details.html屏幕有
<div ng-include="/partials/view-worker-apps-used.html"></div>
我宁愿不把Web应用程序前缀到的路径NG-包括。 我该如何解决这个问题?
将' '添加到index.html的“
”部分。 – Stewie添加
userbb