Spring-Security 5.0.0 无状态会话

问题描述

我有一个简单的应用程序,它使用 Spring Security 通过 LDAP 进行身份验证。我的配置如下

http
               .csrf()
               .disable();
       http
               .authorizeRequests()
               .mvcMatchers("/helloworld")
               .permitAll()
               .anyRequest()
               .authenticated()
               .and()
               .httpBasic()
               .and()
               .sessionManagement()
               .sessionCreationPolicy(SessionCreationPolicy.STATELESS);

登录后,我有一个使用 .xsl 文件构建的页面,该文件每 60 秒刷新一次。刷新有效,但在某些时候,几分钟后,再次请求身份验证弹出窗口。为什么会这样? 谢谢并感谢您的回复

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)