我可以解决它。不知何故,maven 仍然选择 spring-session-core jar 而不是 spring-session-jdbc。我刚刚删除了 pom 并再次进行了 Maven 更新。不知道当时是如何采取正确的。