这个spring boot启动错误是什么意思?
2016-07-04 21:53:53 [restartedMain] ERROR o.s.boot.SpringApplication - Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name org.springframework.boot.autoconfigure.session.SessionAutoConfiguration$SessionRepositoryValidator': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No session repository could be auto-configured, check your configuration (session store type is 'null')
最佳答案
您的类路径中有 Spring Session,但没有提供存储。我们无法为您做出决定,因为您的类路径发生了变化,商店类型可能会根据我们的偏好发生变化,您会在没有任何警告的情况下丢失它们。
从历史上看,我们只支持 redis,所以如果你有,我们会透明地使用它。请将 spring.session.store-type
设置为您要用于 Spring Session 的商店。如果 Spring Session 在您的类路径中并且您现在不想使用它,请设置 spring.session.store-type=none
更新:鉴于赞成票的数量,这看起来像是一条令人困惑的错误消息,所以我打开了 #9284改进它。
关于java - 无法自动配置 session 存储库,请检查您的配置( session 存储类型为 'null' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38194650/