admin管理员组文章数量:1612060
报错如下:
Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor
连mongodb报错的,注意,博主说的是eggjs的egg-mongoose的解决方案。如果你是其他的后端语言,解决方案来,点这个---》Mongoose v6.3.3: Migrating to Mongoose 6
报错起因:
mongoose旧的解析器准备废弃,要使用新的解析器
解决方案:
这里是eggjs的egg-mongoose解决方案 在强调一遍!!!!!
去目录 config/config.default.js,加一个配置。
config.mongoose = {
url: 'mongodb://127.0.0.1:27017/userLog',
options: {
useUnifiedTopology:true
},
};
博主找的挺多博文的,eggjs你百度不到几个参考,关注博主吧。到时候站内搜索,卡到的站内提问,博文里面没有的,博主百度会比你快点!!!!
本文标签: 报错CurrentServereggjswarning
版权声明:本文标题:eggjs报错 Warning: Current Server Discovery and Monitoring engine is deprecated, and will be rem... 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1728627558a1166690.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论