检测认证需要为密码设置有效期。(看代码用的是shiro的安全框架来验证登录,不是很懂,开始研究)
这里记录下大致的思路,留痕以后万一使用。
1.web.xml中加上过滤器
容器中shiro的配置
这个是登录的controller里
realm中:
网友的帖子:
http://blog.csdn.net/u013142781/article/details/50629708
http://jinnianshilongnian.iteye.com/blog/2018936/
测试网友的代码: