shiro框架的anno(web使用shiro框架时,怎么设置 session 永不过期session.setTime(-1000)行不通)

本文目录
- web使用shiro框架时,怎么设置 session 永不过期session.setTime(-1000)行不通
- shiro框架的org.apache.shiro.authz.unauthenticatedexception怎么解决
- 不知道是我配置的问题,还是什么问题,谁知道shiro安全框架sampleRealm的配置
web使用shiro框架时,怎么设置 session 永不过期session.setTime(-1000)行不通
Sets the time in milliseconds that the session may remain idle before expiring。
A negative value means the session will never expire
you need sets A negative value is long.
session.setTimeout(-1000l);
shiro框架的org.apache.shiro.authz.unauthenticatedexception怎么解决
应该是配置Auth有问题,没有一一对应,就去使用了
推荐一套完整的Shiro Demo,免费的。
***隐藏网址***
***隐藏网址***
管理员帐号:admin,密码:sojson.com 如果密码错误,请用sojson。PS:你可以注册自己的帐号,然后用管理员赋权限给你自己的帐号,但是,每20分钟会把数据初始化一次。建议自己下载源码,让Demo跑起来,然后跑的更快。
不知道是我配置的问题,还是什么问题,谁知道shiro安全框架sampleRealm的配置
出现这个问题主要是验证身份的时候报错,主要看两个地方第一个就是重写的方法doGetAuthenticationInfo和你的controller,或者看看这两个方法的传递的参数是否正确。

更多文章:
数据库管理系统和数据库系统分别侧重(数据库,数据库管理系统,数据库系统,这三个分别是什么意思并举个实例)
2026年9月7日 17:00
springmvc的依赖(springMVC的注入方式有哪几种,这与springMVC依赖)
2026年9月7日 14:00
display flex 自动换行(overflow-y:hidden;overflow-x:auto;无效解决方法)
2026年9月7日 11:00
timestamp without time zone(Postgresql中to_date()函数使用问题)
2026年9月7日 09:40







