Package | Description |
---|---|
com.wang.config | |
com.wang.controller |
Modifier and Type | Method and Description |
---|---|
ResponseBean |
ExceptionAdvice.globalException(javax.servlet.http.HttpServletRequest request,
Throwable ex)
捕捉其他所有异常
|
ResponseBean |
ExceptionAdvice.handle(CustomException e)
捕捉其他所有自定义异常
|
ResponseBean |
ExceptionAdvice.handle(org.springframework.web.servlet.NoHandlerFoundException e)
捕捉404异常
|
ResponseBean |
ExceptionAdvice.handle401(CustomUnauthorizedException e)
捕捉UnauthorizedException自定义异常
|
ResponseBean |
ExceptionAdvice.handle401(org.apache.shiro.ShiroException e)
捕捉所有Shiro异常
|
ResponseBean |
ExceptionAdvice.handle401(org.apache.shiro.authz.UnauthenticatedException e)
单独捕捉Shiro(UnauthenticatedException)异常
该异常为以游客身份访问有权限管控的请求无法对匿名主体进行授权,而授权失败所抛出的异常
|
ResponseBean |
ExceptionAdvice.handle401(org.apache.shiro.authz.UnauthorizedException e)
单独捕捉Shiro(UnauthorizedException)异常
该异常为访问有权限管控的请求而该用户没有所需权限所抛出的异常
|
ResponseBean |
ExceptionAdvice.validException(org.springframework.validation.BindException e)
捕捉校验异常(BindException)
|
ResponseBean |
ExceptionAdvice.validException(org.springframework.web.bind.MethodArgumentNotValidException e)
捕捉校验异常(MethodArgumentNotValidException)
|
Modifier and Type | Method and Description |
---|---|
ResponseBean |
UserController.add(UserDto userDto)
新增用户
|
ResponseBean |
UserController.article()
测试登录
|
ResponseBean |
UserController.delete(Integer id)
删除用户
|
ResponseBean |
UserController.deleteOnline(Integer id)
剔除在线用户
|
ResponseBean |
UserController.findById(Integer id)
获取指定用户
|
ResponseBean |
UserController.info()
获取当前登录用户信息
|
ResponseBean |
UserController.login(UserDto userDto,
javax.servlet.http.HttpServletResponse httpServletResponse)
登录授权
|
ResponseBean |
UserController.online()
获取在线用户(查询Redis中的RefreshToken)
|
ResponseBean |
UserController.requireAuth()
测试登录注解(@RequiresAuthentication和subject.isAuthenticated()返回true一个性质)
|
ResponseBean |
UserController.update(UserDto userDto)
更新用户
|
ResponseBean |
UserController.user(BaseDto baseDto)
获取用户列表
|
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.