zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    JS 原型模式 工厂模式 构造函数的区别
    JS 深入1
    理解DOM的一个例子
    Fuzzing参数
    神经网络相关知识和概念整理
    [转载] 系统、模型和仿真
    frp内网穿透,从外网访问内网资源
    常用软件配置
    141. 环形链表
    501. 二叉搜索树中的众数
  • 原文地址:https://www.cnblogs.com/ly1102/p/6773775.html
Copyright © 2011-2022 走看看