![](/img/trans.png)
[英]No session repository could be auto-configured(session store type is 'redis')
[英]No session repository could be auto-configured, check your configuration (session store type is 'null')
這個春季啟動錯誤意味着什么?
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
更新 :鑒於upvotes的數量,這看起來像一個令人困惑的錯誤消息,所以我打開#9284來改進它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.