【问题标题】:MEAN stack app shows 404 in console when requests for dataMEAN 堆栈应用程序在请求数据时在控制台中显示 404
【发布时间】:2017-01-27 12:26:17
【问题描述】:

在基于 MEAN 堆栈的基本投诉数据库应用程序 (CRUD) 中,我在路由时遇到问题,当我根据旅馆名称请求数据时,Mongo 在控制台上返回 404。

https://github.com/ajayns/hostel-complaint-portal/tree/db-hostel-fix 这是我正在工作的有问题的分支。

enter image description here

【问题讨论】:

    标签: angularjs mongodb


    【解决方案1】:

    我执行了您的代码,发现您错过了 express listen 代码,因此您收到 404 错误

    你可以关注我的githublink,这里我做了修改

    【讨论】:

    • 嘿!实际上问题不在于页面加载本身。在 MongoDB 中保存对象后,应用程序似乎没有在列表页面中检索它们(登录页面后一个)
    猜你喜欢
    • 2020-05-11
    • 2016-03-10
    • 2014-07-08
    • 2019-11-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多