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