shiro
懒猫-DustFree
此人确实很懒,动都不想动
展开
-
springboot整合shiro @RequiresPermissions 无效 但是@RequiresRoles 可以用
我直接贴代码:pom.xml<!-- 设置springboot方式启动 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> ...原创 2019-04-11 22:45:03 · 1265 阅读 · 2 评论 -
springboot+shiro做统一的异常处理
1.shiro的常见异常1.1 AuthencationException: AuthenticationException 异常是Shiro在登录认证过程中,认证失败需要抛出的异常。 AuthenticationException包含以下子类:CredentitalsException 凭证异常 IncorrectCredentialsException 不正确的凭证...原创 2019-04-27 13:28:49 · 10038 阅读 · 0 评论 -
springboot +shiro 授权无效的问题
大神求指教问题描述:1.用数据库的权限码无效(放入集合无效)2.手动添加权限可以使用(类似于:authorizationInfo.addStringPermission(“aa”))无效情况一: List<String> list=new ArrayList<String>(); for (Functions func : functions)...原创 2019-04-30 16:12:55 · 1575 阅读 · 0 评论 -
Springboot+Shiro统一异常处理包含Ajax
1.采用方式这里通过 @ControllerAdvice和@ExceptionHandler 的异常处理方式2.具体步骤1.创建统一异常处理类(GlobalExpetion)2.定义判断是否是Aajx请求的方法 public boolean isAjax(HttpServletRequest request) { return (request.getHeader("X...原创 2019-06-05 00:07:17 · 1804 阅读 · 0 评论