具體異常提示:
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-04-27 13:08:59.859 ERROR 13804 --- [ main] 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')
前一天還正常使用的項目第二天出現問題,查看svn發現是有人修改了properties文件中spring-boot-starter-parent的版本.
之前的版本使用的是1.2.5
出現錯誤的版本是1.5.2
修改方法如下:
在properties文件中添加 配置信息
spring.session.store-type=none
這樣就能正常啟動了.
至於為什么更改版本后出現了問題,因為時間關系沒有細追,之后在解決吧
參考資料:
http://stackoverflow.com/questions/38194650/no-session-repository-could-be-auto-configured-check-your-configuration-sessio