spring-Sessions are not supported by the MongoDB cluster to which this client is connected 原因: 1.mongodb版本过低4.0以下不支持事务的情况下会报这个 2.安全认证问题参考如下连接 https://blog.csdn.net/ssehs/article/details/105301345