After searching the web, we found that the session store type was used to store the session, and currently only the Redis mode is supported in spring boot. Since this application does not need to put the session into Redis, it is possible to set the session store type to none.
Here we put this configuration information into Application.properites:
# Default-store in spring session. It'll be set in Redis only outside.
Spring.session.store-type=None
Start again, success.
If you use Redis storage session:
Application.properties Configuration
spring.session.store-type=redis
To join the Redis configuration:
Spring. Redis. database=0spring. Redis. host=localhostspring.redis.password=spring .redis.pool8spring.redis .pool.max-idle= 8spring.redis.pool .max-wait=-1spring.pool.min-idle= 0spring.redis.port= 6379
Spring Boot Session store type is ' null '