Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
存储客户端连接的最佳方式是什么?它需要为了每个请求都没有向 mongo 请求授权。当我尝试:
auto msettings = new MongoClientSettings(); MongoClient client = connectMongoDB(msettings); req.session.set("client", client);
我收到一个错误session.d:
session.d
静态断言:“类型 MongoClient 包含引用,会话存储不支持。”