When springboot is started, No session repository cocould be auto-configured ...... springconfigured

Source: Internet
Author: User

When springboot is started, No session repository cocould be auto-configured ...... springconfigured

Exception prompt:

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
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 cocould be auto-configured, check your configuration (session store type is 'null ')

A problem occurred on the second day of the project that was still in normal use the previous day. Check that svn found that someone modified the spring-boot-starter-parent version in the properties file.

Earlier versions use 1.2.5.

The version with the error is 1.5.2.

The modification method is as follows:

Add configuration information to the properties File

Spring. session. store-type = none

In this way, the instance can be started normally.

Why is there a problem after the version is changed, because the time relationship is not followed up, please solve it later

 

References:

Http://stackoverflow.com/questions/38194650/no-session-repository-could-be-auto-configured-check-your-configuration-sessio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.