我正在开发一个Spring MVC Web应用程序。
我没有任何问题,但在我的代码中有一些小的更改(与SecurityContext无关)后,我开始出现此错误
org.springframework.security.web.context.HttpSessionSecurityContextRepository $ SaveToSessionResponseWrapper createNewSessionIfAllowed无法创建会话,如响应所示 一直致力于。无法存储SecurityContext。
在我的代码中,我始终能够使用此行存储Authentication
个对象
SecurityContextHolder.getContext().setAuthentication(myAuthentication);
谷歌没有帮助我。怎么了?这个错误是什么?