• 已删除用户
Administrator
发布于 2018-01-08 / 89 阅读
1

解决问题:No Spring Session store is configured: set the 'spring.session.store-type' property

目前Spring boot的session的存储方式只支持Redis方式,在没有用到时,可以将session store type设置为none.

将此配置信息放入application.properites之中:

 

# default-store in spring session. it will be set in redis only outside.

spring.session.store-type=none

如果使用redis存储session:

则在application.properties配置

spring.session.store-type=redis

并加入redis配置:

spring.redis.database=0
spring.redis.host=localhost
spring.redis.password=
spring.redis.pool.max-active=8
spring.redis.pool.max-idle=8
spring.redis.pool.max-wait=-1
spring.redis.pool.min-idle=0
spring.redis.port=6379