摘要: Shiro框架默认认证失败后会返回到登录页面,在前后端分离项目中,需要返回JSON数据,以便前端或者app端解析处理。 实现方式: 1. 扩展shiro框架的UserFilter类,重写redirectToLogin方法。 2. 在Shiro 的ShiroFilterFactoryBean中加入fi 阅读全文
posted @ 2019-06-17 10:40 大刀客 阅读(4898) 评论(0) 推荐(1) 编辑