摘要:
不能使用form-data,而是选择x-www-form-urlencoded 参考:https://blog.csdn.net/u010572493/article/details/81943485 https://www.bilibili.com/read/cv4343058/ 阅读全文
posted @ 2021-09-23 17:25
XiaoNiuFeiTian
阅读(682)
评论(0)
推荐(0)
摘要:
当进行新用户注册时,使用bcrypt进行加密,然后将结果保存到数据库中 当验证时,则需要进行compare校对 验证密码时,bcrypt.compare()始终返回false(bcrypt.compare() always returns false when verifying passwords 阅读全文
posted @ 2021-09-23 16:51
XiaoNiuFeiTian
阅读(59)
评论(0)
推荐(0)
摘要:
mongoose默认会将model的名字转换为复数形式作为对应collection的名称:链接 阅读全文
posted @ 2021-09-23 16:44
XiaoNiuFeiTian
阅读(199)
评论(0)
推荐(1)
摘要:
Mongodb是Schema free的。。 那么如何定义约束呢?不让表太自由 mongodb 的 schema 设计方法:https://blog.csdn.net/weixin_34123613/article/details/89390489 阅读全文
posted @ 2021-09-23 16:14
XiaoNiuFeiTian
阅读(316)
评论(0)
推荐(0)
摘要:
Moogoose入门教程:https://blog.csdn.net/weixin_45828332/article/details/114120710 countDocuments(query)函数的使用: https://www.nuomiphp.com/eplan/2759.html 如果要全 阅读全文
posted @ 2021-09-23 15:25
XiaoNiuFeiTian
阅读(349)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-09-23 13:54
XiaoNiuFeiTian
阅读(109)
评论(0)
推荐(0)
摘要:
案例1:https://www.cnblogs.com/angelasp/p/12159902.html(vue-element-admin) 前端技术不变,只是后台从mysql换成mongodb+nodejs 下载: vue-element-admin+nodejs+mongodb:https:/ 阅读全文
posted @ 2021-09-23 11:38
XiaoNiuFeiTian
阅读(170)
评论(0)
推荐(0)
摘要:
很多人连接后发现没有数据库列表:https://blog.csdn.net/qq_37700575/article/details/90601809(点击查看->显示隐藏的项目) Navicat新建MongoDB数据库,是灰色的:新建一个集合,就会变成实体黑了 可能一开始创建数据库时,是在内存中的, 阅读全文
posted @ 2021-09-23 11:05
XiaoNiuFeiTian
阅读(1325)
评论(0)
推荐(0)
浙公网安备 33010602011771号