关于nodejs DeprecationWarning: current URL string parser is deprecated, and will be removed in a futur

const mongoose = require('mongoose') mongodb

mongoose.connect("mongodb://localhost:27017/study", {useNewUrlParser:true}, function(err){ mongoose

  if(err){ ui

    console.log('Connection Error:' + err) spa

  }else{ string

    console.log('Connection success!') it

  } io

})console

相关文章
相关标签/搜索