spring boot之session store type is 'null'
生活随笔
收集整理的這篇文章主要介紹了
spring boot之session store type is 'null'
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在網(wǎng)上搜索之后,發(fā)現(xiàn)session store type使用來存放session的存儲(chǔ)方式,目前Spring boot中只支持Redis方式。 由于本應(yīng)用暫無需將session放入redis的需求,故這里就可以將session store type設(shè)置為none.
?這里我們將此配置信息放入application.properites之中:
#?default-store?in?spring?session.?it?will?be?set?in?redis?only?outside.
spring.session.store-type=none
再次啟動(dòng),成功。
如果使用redis存儲(chǔ)session:
application.properties配置
spring.session.store-type=redis
加入redis配置:
轉(zhuǎn)載于:https://www.cnblogs.com/arthy/p/6902960.html
總結(jié)
以上是生活随笔為你收集整理的spring boot之session store type is 'null'的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 安卓之光!三星Galaxy S23 Ul
- 下一篇: mysql字符串用法