连接数据库:mongoose.connect("mongodb://admin:111111@localhost/root");
session使用数据库:app.use(session({
    secret: "cookieSecret",
    store: new MongoStore({
 url: 'mongodb://admin:111111@localhost/root'
}) }));
所有评论
加载评论 ...
发表评论