springboot启动时报错No session repository could be auto-configured.....


具体异常提示:

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM