在进行API调用时,我无法将会话保存在redis db中。
为此,我使用SpringBoot redis配置:
compile("org.springframework.boot:spring-boot-devtools")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.boot:spring-boot-starter-data-redis")
compile group: 'org.springframework.session', name: 'spring-session-data-redis', version: '2.0.4.RELEASE'
https://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot-redis.html
.
我希望当我的客户机调用我的API端点时,JSESSIONID被保存为redis中的一个散列,我可以将数据附加到该散列中,然后再对其进行检索。
谢谢你抽出时间!