Skip navigation links
A B C D E F G H I J K L M O P R S T U V 

A

ACCOUNT - Static variable in class com.wang.model.common.Constant
JWT-account:
add(UserDto) - Method in class com.wang.controller.UserController
新增用户
addSingleQuotes(String) - Static method in class com.wang.util.common.StringUtil
在字符串两周添加''
AesCipherUtil - Class in com.wang.util
AES加密解密工具类
AesCipherUtil() - Constructor for class com.wang.util.AesCipherUtil
 
Application - Class in com.wang
 
Application() - Constructor for class com.wang.Application
 
article() - Method in class com.wang.controller.UserController
测试登录
authorizationAttributeSourceAdvisor(DefaultWebSecurityManager) - Method in class com.wang.config.shiro.ShiroConfig
 

B

Base64ConvertUtil - Class in com.wang.util.common
Base64工具
BaseDto - Class in com.wang.model.common
分页排序通用Dto
BaseDto() - Constructor for class com.wang.model.common.BaseDto
 
BaseServiceImpl<T> - Class in com.wang.service.impl
 
BaseServiceImpl() - Constructor for class com.wang.service.impl.BaseServiceImpl
 

C

camelToUnderline(String) - Static method in class com.wang.util.common.StringUtil
驼峰转下划线工具
clear() - Method in class com.wang.config.shiro.cache.CustomCache
清空所有缓存
closePool() - Static method in class com.wang.util.JedisUtil
释放Jedis资源
com.wang - package com.wang
 
com.wang.config - package com.wang.config
 
com.wang.config.redis - package com.wang.config.redis
 
com.wang.config.shiro - package com.wang.config.shiro
 
com.wang.config.shiro.cache - package com.wang.config.shiro.cache
 
com.wang.config.shiro.jwt - package com.wang.config.shiro.jwt
 
com.wang.controller - package com.wang.controller
 
com.wang.exception - package com.wang.exception
 
com.wang.mapper - package com.wang.mapper
 
com.wang.model - package com.wang.model
 
com.wang.model.common - package com.wang.model.common
 
com.wang.model.entity - package com.wang.model.entity
 
com.wang.model.valid.group - package com.wang.model.valid.group
 
com.wang.service - package com.wang.service
 
com.wang.service.impl - package com.wang.service.impl
 
com.wang.util - package com.wang.util
 
com.wang.util.common - package com.wang.util.common
 
Constant - Class in com.wang.model.common
常量
CURRENT_TIME_MILLIS - Static variable in class com.wang.model.common.Constant
JWT-currentTimeMillis:
CustomCache<K,V> - Class in com.wang.config.shiro.cache
重写Shiro的Cache保存读取
CustomCache() - Constructor for class com.wang.config.shiro.cache.CustomCache
 
CustomCacheManager - Class in com.wang.config.shiro.cache
重写Shiro缓存管理器
CustomCacheManager() - Constructor for class com.wang.config.shiro.cache.CustomCacheManager
 
CustomException - Exception in com.wang.exception
自定义异常(CustomException)
CustomException(String) - Constructor for exception com.wang.exception.CustomException
 
CustomException() - Constructor for exception com.wang.exception.CustomException
 
CustomUnauthorizedException - Exception in com.wang.exception
自定义401无权限异常(UnauthorizedException)
CustomUnauthorizedException(String) - Constructor for exception com.wang.exception.CustomUnauthorizedException
 
CustomUnauthorizedException() - Constructor for exception com.wang.exception.CustomUnauthorizedException
 

D

decode(String) - Static method in class com.wang.util.common.Base64ConvertUtil
解密JDK1.8
deCrypto(String) - Static method in class com.wang.util.AesCipherUtil
解密
defaultAdvisorAutoProxyCreator() - Method in class com.wang.config.shiro.ShiroConfig
下面的代码是添加注解支持
defaultWebSecurityManager(UserRealm) - Method in class com.wang.config.shiro.ShiroConfig
配置使用自定义Realm,关闭Shiro自带的session 详情见文档 http://shiro.apache.org/session-management.html#SessionManagement-StatelessApplications%28Sessionless%29
delete(Integer) - Method in class com.wang.controller.UserController
删除用户
delete(T) - Method in interface com.wang.service.IBaseService
根据实体属性作为条件进行删除,查询条件使用等号
delete(T) - Method in class com.wang.service.impl.BaseServiceImpl
 
deleteByExample(Object) - Method in interface com.wang.service.IBaseService
根据Example条件删除数据
deleteByExample(Object) - Method in class com.wang.service.impl.BaseServiceImpl
 
deleteByPrimaryKey(Object) - Method in interface com.wang.service.IBaseService
根据主键字段进行删除,方法参数必须包含完整的主键属性
deleteByPrimaryKey(Object) - Method in class com.wang.service.impl.BaseServiceImpl
 
deleteOnline(Integer) - Method in class com.wang.controller.UserController
剔除在线用户
delKey(String) - Static method in class com.wang.util.JedisUtil
删除key
destroy() - Method in class com.wang.config.OriginFilter
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.wang.config.OriginFilter
 
doGetAuthenticationInfo(AuthenticationToken) - Method in class com.wang.config.shiro.UserRealm
默认使用此方法进行用户名正确与否验证,错误抛出异常即可。
doGetAuthorizationInfo(PrincipalCollection) - Method in class com.wang.config.shiro.UserRealm
只有当需要检测用户权限的时候才会调用此方法,例如checkRole,checkPermission之类的

E

encode(String) - Static method in class com.wang.util.common.Base64ConvertUtil
加密JDK1.8
enCrypto(String) - Static method in class com.wang.util.AesCipherUtil
加密
ExceptionAdvice - Class in com.wang.config
异常控制处理器
ExceptionAdvice() - Constructor for class com.wang.config.ExceptionAdvice
 
executeLogin(ServletRequest, ServletResponse) - Method in class com.wang.config.shiro.jwt.JwtFilter
进行AccessToken登录认证授权
exists(String) - Static method in class com.wang.util.JedisUtil
key是否存在
EXRP_DAY - Static variable in class com.wang.model.common.Constant
redis过期时间,以秒为单位,一天
EXRP_HOUR - Static variable in class com.wang.model.common.Constant
redis过期时间,以秒为单位,一小时
EXRP_MINUTE - Static variable in class com.wang.model.common.Constant
redis过期时间,以秒为单位,一分钟

F

findById(Integer) - Method in class com.wang.controller.UserController
获取指定用户
findPermissionByRole(RoleDto) - Method in interface com.wang.mapper.PermissionMapper
根据Role查询Permission
findRoleByUser(UserDto) - Method in interface com.wang.mapper.RoleMapper
根据User查询Role

G

get(Object) - Method in class com.wang.config.shiro.cache.CustomCache
获取缓存
getAccount() - Method in class com.wang.model.entity.User
获取帐号
getAccount() - Method in class com.wang.util.UserUtil
获取当前登录用户Account
getCache(String) - Method in class com.wang.config.shiro.cache.CustomCacheManager
 
getClaim(String, String) - Static method in class com.wang.util.JwtUtil
获得Token中的信息无需secret解密也能获得
getCode() - Method in class com.wang.model.common.ResponseBean
 
getCredentials() - Method in class com.wang.config.shiro.jwt.JwtToken
 
getData() - Method in class com.wang.model.common.ResponseBean
 
getHost() - Method in class com.wang.config.redis.JedisConfig
 
getId() - Method in class com.wang.model.entity.Permission
获取ID
getId() - Method in class com.wang.model.entity.Role
获取ID
getId() - Method in class com.wang.model.entity.RolePermission
获取ID
getId() - Method in class com.wang.model.entity.User
获取ID
getId() - Method in class com.wang.model.entity.UserRole
获取ID
getJedis() - Static method in class com.wang.util.JedisUtil
获取Jedis实例
getJson(String) - Static method in class com.wang.util.JedisUtil
获取redis键值-Json
getLoginTime() - Method in class com.wang.model.UserDto
 
getMapper() - Method in class com.wang.service.impl.BaseServiceImpl
 
getMaxActive() - Method in class com.wang.config.redis.JedisConfig
 
getMaxIdle() - Method in class com.wang.config.redis.JedisConfig
 
getMaxWait() - Method in class com.wang.config.redis.JedisConfig
 
getMinIdle() - Method in class com.wang.config.redis.JedisConfig
 
getMsg() - Method in class com.wang.model.common.ResponseBean
 
getName() - Method in class com.wang.model.entity.Permission
获取资源名称
getName() - Method in class com.wang.model.entity.Role
获取角色名称
getObject(String) - Static method in class com.wang.util.JedisUtil
获取redis键值-object
getPage() - Method in class com.wang.model.common.BaseDto
 
getPassword() - Method in class com.wang.config.redis.JedisConfig
 
getPassword() - Method in class com.wang.model.entity.User
获取密码
getPerCode() - Method in class com.wang.model.entity.Permission
获取权限代码字符串
getPermissionId() - Method in class com.wang.model.entity.RolePermission
获取权限id
getPort() - Method in class com.wang.config.redis.JedisConfig
 
getPrincipal() - Method in class com.wang.config.shiro.jwt.JwtToken
 
getProperty(String) - Static method in class com.wang.util.common.PropertiesUtil
根据key读取对应的value
getRegTime() - Method in class com.wang.model.entity.User
获取注册时间
getRoleId() - Method in class com.wang.model.entity.RolePermission
获取角色id
getRoleId() - Method in class com.wang.model.entity.UserRole
获取角色id
getRows() - Method in class com.wang.model.common.BaseDto
 
getSidx() - Method in class com.wang.model.common.BaseDto
 
getSord() - Method in class com.wang.model.common.BaseDto
 
getTimeout() - Method in class com.wang.config.redis.JedisConfig
 
getToken() - Method in class com.wang.util.UserUtil
获取当前登录用户Token
getUser() - Method in class com.wang.util.UserUtil
获取当前登录用户
getUserId() - Method in class com.wang.model.entity.UserRole
获取用户id
getUserId() - Method in class com.wang.util.UserUtil
获取当前登录用户Id
getUsername() - Method in class com.wang.model.entity.User
获取昵称
globalException(HttpServletRequest, Throwable) - Method in class com.wang.config.ExceptionAdvice
捕捉其他所有异常

H

handle(CustomException) - Method in class com.wang.config.ExceptionAdvice
捕捉其他所有自定义异常
handle(NoHandlerFoundException) - Method in class com.wang.config.ExceptionAdvice
捕捉404异常
handle401(ShiroException) - Method in class com.wang.config.ExceptionAdvice
捕捉所有Shiro异常
handle401(UnauthorizedException) - Method in class com.wang.config.ExceptionAdvice
单独捕捉Shiro(UnauthorizedException)异常 该异常为访问有权限管控的请求而该用户没有所需权限所抛出的异常
handle401(UnauthenticatedException) - Method in class com.wang.config.ExceptionAdvice
单独捕捉Shiro(UnauthenticatedException)异常 该异常为以游客身份访问有权限管控的请求无法对匿名主体进行授权,而授权失败所抛出的异常
handle401(CustomUnauthorizedException) - Method in class com.wang.config.ExceptionAdvice
捕捉UnauthorizedException自定义异常
HexConvertUtil - Class in com.wang.util.common
进制转换工具

I

IBaseService<T> - Interface in com.wang.service
 
info() - Method in class com.wang.controller.UserController
获取当前登录用户信息
init(FilterConfig) - Method in class com.wang.config.OriginFilter
 
insert(T) - Method in interface com.wang.service.IBaseService
保存一个实体,null的属性也会保存,不会使用数据库默认值
insert(T) - Method in class com.wang.service.impl.BaseServiceImpl
 
insertSelective(T) - Method in interface com.wang.service.IBaseService
保存一个实体,null的属性不会保存,会使用数据库默认值
insertSelective(T) - Method in class com.wang.service.impl.BaseServiceImpl
 
isAccessAllowed(ServletRequest, ServletResponse, Object) - Method in class com.wang.config.shiro.jwt.JwtFilter
这里我们详细说明下为什么最终返回的都是true,即允许访问 例如我们提供一个地址 GET /article 登入用户和游客看到的内容是不同的 如果在这里返回了false,请求会被直接拦截,用户看不到任何东西 所以我们在这里返回true,Controller中可以通过 subject.isAuthenticated() 来判断用户是否登入 如果有些资源只有登入用户才能访问,我们只需要在方法上面加上 @RequiresAuthentication 注解即可 但是这样做有一个缺点,就是不能够对GET,POST等请求进行分别过滤鉴权(因为我们重写了官方的方法),但实际上对应用影响不大
isBlank(String) - Static method in class com.wang.util.common.StringUtil
String为空判断(不允许空格)
isLoginAttempt(ServletRequest, ServletResponse) - Method in class com.wang.config.shiro.jwt.JwtFilter
检测Header里面是否包含Authorization字段,有就进行Token登录认证授权
isNotBlank(String) - Static method in class com.wang.util.common.StringUtil
String不为空判断(不允许空格)
isNotNull(byte[]) - Static method in class com.wang.util.common.StringUtil
Byte数组不为空判断
isNull(byte[]) - Static method in class com.wang.util.common.StringUtil
Byte数组为空判断
IUserService - Interface in com.wang.service
 

J

JedisConfig - Class in com.wang.config.redis
Jedis配置,项目启动注入JedisPool http://www.cnblogs.com/GodHeng/p/9301330.html
JedisConfig() - Constructor for class com.wang.config.redis.JedisConfig
 
JedisUtil - Class in com.wang.util
JedisUtil(推荐存Byte数组,存Json字符串效率更慢)
JedisUtil() - Constructor for class com.wang.util.JedisUtil
 
JsonConvertUtil - Class in com.wang.util.common
Json和Object的互相转换,转List必须Json最外层加[],转Object,Json最外层不要加[]
jsonToObject(String, Class<T>) - Static method in class com.wang.util.common.JsonConvertUtil
JSON 转 Object
JwtFilter - Class in com.wang.config.shiro.jwt
JWT过滤
JwtFilter() - Constructor for class com.wang.config.shiro.jwt.JwtFilter
 
JwtToken - Class in com.wang.config.shiro.jwt
JwtToken
JwtToken(String) - Constructor for class com.wang.config.shiro.jwt.JwtToken
 
JwtUtil - Class in com.wang.util
JAVA-JWT工具类
JwtUtil() - Constructor for class com.wang.util.JwtUtil
 

K

keys() - Method in class com.wang.config.shiro.cache.CustomCache
获取所有的key
keysB(String) - Static method in class com.wang.util.JedisUtil
模糊查询获取key集合(keys的速度非常快,但在一个大的数据库中使用它仍然可能造成性能问题,生产不推荐使用)
keysS(String) - Static method in class com.wang.util.JedisUtil
模糊查询获取key集合(keys的速度非常快,但在一个大的数据库中使用它仍然可能造成性能问题,生产不推荐使用)

L

lifecycleBeanPostProcessor() - Method in class com.wang.config.shiro.ShiroConfig
 
login(UserDto, HttpServletResponse) - Method in class com.wang.controller.UserController
登录授权

M

main(String[]) - Static method in class com.wang.Application
 
mapper - Variable in class com.wang.service.impl.BaseServiceImpl
 

O

objectToJson(T) - Static method in class com.wang.util.common.JsonConvertUtil
Object 转 JSON
OK - Static variable in class com.wang.model.common.Constant
redis-OK
onAccessDenied(ServletRequest, ServletResponse) - Method in class com.wang.config.shiro.jwt.JwtFilter
这里我们详细说明下为什么重写 可以对比父类方法,只是将executeLogin方法调用去除了 如果没有去除将会循环调用doGetAuthenticationInfo方法
online() - Method in class com.wang.controller.UserController
获取在线用户(查询Redis中的RefreshToken)
OriginFilter - Class in com.wang.config
全局跨域放开
OriginFilter() - Constructor for class com.wang.config.OriginFilter
 

P

parseByte2HexStr(byte[]) - Static method in class com.wang.util.common.HexConvertUtil
将二进制转换成16进制
parseHexStr2Byte(String) - Static method in class com.wang.util.common.HexConvertUtil
将16进制转换为二进制
PASSWORD_MAX_LEN - Static variable in class com.wang.model.common.Constant
PASSWORD_MAX_LEN
Permission - Class in com.wang.model.entity
Permission
Permission() - Constructor for class com.wang.model.entity.Permission
 
PermissionDto - Class in com.wang.model
 
PermissionDto() - Constructor for class com.wang.model.PermissionDto
 
PermissionMapper - Interface in com.wang.mapper
PermissionMapper
PREFIX_SHIRO_ACCESS_TOKEN - Static variable in class com.wang.model.common.Constant
redis-key-前缀-shiro:access_token:
PREFIX_SHIRO_CACHE - Static variable in class com.wang.model.common.Constant
redis-key-前缀-shiro:cache:
PREFIX_SHIRO_REFRESH_TOKEN - Static variable in class com.wang.model.common.Constant
redis-key-前缀-shiro:refresh_token:
preHandle(ServletRequest, ServletResponse) - Method in class com.wang.config.shiro.jwt.JwtFilter
对跨域提供支持
PropertiesUtil - Class in com.wang.util.common
Properties工具
put(Object, Object) - Method in class com.wang.config.shiro.cache.CustomCache
保存缓存

R

readProperties(String) - Static method in class com.wang.util.common.PropertiesUtil
读取配置文件
redisPoolFactory() - Method in class com.wang.config.redis.JedisConfig
 
remove(Object) - Method in class com.wang.config.shiro.cache.CustomCache
移除缓存
requireAuth() - Method in class com.wang.controller.UserController
测试登录注解(@RequiresAuthentication和subject.isAuthenticated()返回true一个性质)
ResponseBean - Class in com.wang.model.common
ResponseBean
ResponseBean(int, String, Object) - Constructor for class com.wang.model.common.ResponseBean
 
Role - Class in com.wang.model.entity
Role
Role() - Constructor for class com.wang.model.entity.Role
 
RoleDto - Class in com.wang.model
 
RoleDto() - Constructor for class com.wang.model.RoleDto
 
RoleMapper - Interface in com.wang.mapper
RoleMapper
RolePermission - Class in com.wang.model.entity
RolePermission
RolePermission() - Constructor for class com.wang.model.entity.RolePermission
 
RolePermissionDto - Class in com.wang.model
 
RolePermissionDto() - Constructor for class com.wang.model.RolePermissionDto
 
RolePermissionMapper - Interface in com.wang.mapper
RolePermissionMapper

S

select(T) - Method in interface com.wang.service.IBaseService
根据实体中的属性值进行查询,查询条件使用等号
select(T) - Method in class com.wang.service.impl.BaseServiceImpl
 
selectAll() - Method in interface com.wang.service.IBaseService
查询全部结果,select(null)方法能达到同样的效果
selectAll() - Method in class com.wang.service.impl.BaseServiceImpl
 
selectByExample(Object) - Method in interface com.wang.service.IBaseService
根据Example条件进行查询,这个查询支持通过Example类指定查询列,通过selectProperties方法指定查询列
selectByExample(Object) - Method in class com.wang.service.impl.BaseServiceImpl
 
selectByExampleAndRowBounds(Object, RowBounds) - Method in interface com.wang.service.IBaseService
根据example条件和RowBounds进行分页查询
selectByExampleAndRowBounds(Object, RowBounds) - Method in class com.wang.service.impl.BaseServiceImpl
 
selectByPrimaryKey(Object) - Method in interface com.wang.service.IBaseService
根据主键字段进行查询,方法参数必须包含完整的主键属性,查询条件使用等号
selectByPrimaryKey(Object) - Method in class com.wang.service.impl.BaseServiceImpl
 
selectByRowBounds(T, RowBounds) - Method in interface com.wang.service.IBaseService
根据实体属性和RowBounds进行分页查询
selectByRowBounds(T, RowBounds) - Method in class com.wang.service.impl.BaseServiceImpl
 
selectCount(T) - Method in interface com.wang.service.IBaseService
根据实体中的属性查询总数,查询条件使用等号
selectCount(T) - Method in class com.wang.service.impl.BaseServiceImpl
 
selectCountByExample(Object) - Method in interface com.wang.service.IBaseService
根据Example条件进行查询总数
selectCountByExample(Object) - Method in class com.wang.service.impl.BaseServiceImpl
 
selectOne(T) - Method in interface com.wang.service.IBaseService
根据实体中的属性进行查询,只能有一个返回值,有多个结果是抛出异常,查询条件使用等号
selectOne(T) - Method in class com.wang.service.impl.BaseServiceImpl
 
serializable(Object) - Static method in class com.wang.util.common.SerializableUtil
序列化
SerializableUtil - Class in com.wang.util.common
Serializable工具(JDK)(也可以使用Protobuf自行百度)
setAccessTokenExpireTime(String) - Method in class com.wang.util.JwtUtil
 
setAccount(String) - Method in class com.wang.model.entity.User
设置帐号
setCode(Integer) - Method in class com.wang.model.common.ResponseBean
 
setData(Object) - Method in class com.wang.model.common.ResponseBean
 
setEncryptAESKey(String) - Method in class com.wang.util.AesCipherUtil
 
setEncryptJWTKey(String) - Method in class com.wang.util.JwtUtil
 
setHost(String) - Method in class com.wang.config.redis.JedisConfig
 
setId(Integer) - Method in class com.wang.model.entity.Permission
设置ID
setId(Integer) - Method in class com.wang.model.entity.Role
设置ID
setId(Integer) - Method in class com.wang.model.entity.RolePermission
设置ID
setId(Integer) - Method in class com.wang.model.entity.User
设置ID
setId(Integer) - Method in class com.wang.model.entity.UserRole
设置ID
setJedisPool(JedisPool) - Method in class com.wang.util.JedisUtil
 
setJson(String, String) - Static method in class com.wang.util.JedisUtil
设置redis键值-Json
setJson(String, String, int) - Static method in class com.wang.util.JedisUtil
设置redis键值-Json-expiretime
setLoginTime(Date) - Method in class com.wang.model.UserDto
 
setMaxActive(int) - Method in class com.wang.config.redis.JedisConfig
 
setMaxIdle(int) - Method in class com.wang.config.redis.JedisConfig
 
setMaxWait(int) - Method in class com.wang.config.redis.JedisConfig
 
setMinIdle(int) - Method in class com.wang.config.redis.JedisConfig
 
setMsg(String) - Method in class com.wang.model.common.ResponseBean
 
setName(String) - Method in class com.wang.model.entity.Permission
设置资源名称
setName(String) - Method in class com.wang.model.entity.Role
设置角色名称
setObject(String, Object) - Static method in class com.wang.util.JedisUtil
设置redis键值-object
setObject(String, Object, int) - Static method in class com.wang.util.JedisUtil
设置redis键值-object-expiretime
setPage(Integer) - Method in class com.wang.model.common.BaseDto
 
setPassword(String) - Method in class com.wang.config.redis.JedisConfig
 
setPassword(String) - Method in class com.wang.model.entity.User
设置密码
setPerCode(String) - Method in class com.wang.model.entity.Permission
设置权限代码字符串
setPermissionId(Integer) - Method in class com.wang.model.entity.RolePermission
设置权限id
setPort(int) - Method in class com.wang.config.redis.JedisConfig
 
setRegTime(Date) - Method in class com.wang.model.entity.User
设置注册时间
setRoleId(Integer) - Method in class com.wang.model.entity.RolePermission
设置角色id
setRoleId(Integer) - Method in class com.wang.model.entity.UserRole
设置角色id
setRows(Integer) - Method in class com.wang.model.common.BaseDto
 
setSidx(String) - Method in class com.wang.model.common.BaseDto
 
setSord(String) - Method in class com.wang.model.common.BaseDto
 
setTimeout(int) - Method in class com.wang.config.redis.JedisConfig
 
setUserId(Integer) - Method in class com.wang.model.entity.UserRole
设置用户id
setUsername(String) - Method in class com.wang.model.entity.User
设置昵称
ShiroConfig - Class in com.wang.config.shiro
Shiro配置
ShiroConfig() - Constructor for class com.wang.config.shiro.ShiroConfig
 
shiroFilterFactoryBean(DefaultWebSecurityManager) - Method in class com.wang.config.shiro.ShiroConfig
添加自己的过滤器,自定义url规则 Shiro自带拦截器配置规则 rest:比如/admins/user/**=rest[user],根据请求的方法,相当于/admins/user/**=perms[user:method] ,其中method为post,get,delete等 port:比如/admins/user/**=port[8081],当请求的url的端口不是8081是跳转到schemal://serverName:8081?queryString,其中schmal是协议http或https等,serverName是你访问的host,8081是url配置里port的端口,queryString是你访问的url里的?后面的参数 perms:比如/admins/user/**=perms[user:add:*],perms参数可以写多个,多个时必须加上引号,并且参数之间用逗号分割,比如/admins/user/**=perms["user:add:*,user:modify:*"],当有多个参数时必须每个参数都通过才通过,想当于isPermitedAll()方法 roles:比如/admins/user/**=roles[admin],参数可以写多个,多个时必须加上引号,并且参数之间用逗号分割,当有多个参数时,比如/admins/user/**=roles["admin,guest"],每个参数通过才算通过,相当于hasAllRoles()方法。//要实现or的效果看http://zgzty.blog.163.com/blog/static/83831226201302983358670/ anon:比如/admins/**=anon 没有参数,表示可以匿名使用 authc:比如/admins/user/**=authc表示需要认证才能使用,没有参数 authcBasic:比如/admins/user/**=authcBasic没有参数表示httpBasic认证 ssl:比如/admins/user/**=ssl没有参数,表示安全的url请求,协议为https user:比如/admins/user/**=user没有参数表示必须存在用户,当登入操作时不做检查 详情见文档 http://shiro.apache.org/web.html#urls-
sign(String, String) - Static method in class com.wang.util.JwtUtil
生成签名
size() - Method in class com.wang.config.shiro.cache.CustomCache
缓存的个数
StringUtil - Class in com.wang.util.common
String工具
supports(AuthenticationToken) - Method in class com.wang.config.shiro.UserRealm
大坑,必须重写此方法,不然Shiro会报错

T

ttl(String) - Static method in class com.wang.util.JedisUtil
获取过期剩余时间

U

underlineToCamel(String) - Static method in class com.wang.util.common.StringUtil
下划线转驼峰工具
unserializable(byte[]) - Static method in class com.wang.util.common.SerializableUtil
反序列化
update(UserDto) - Method in class com.wang.controller.UserController
更新用户
updateByExample(T, Object) - Method in interface com.wang.service.IBaseService
根据Example条件更新实体record包含的全部属性,null值会被更新
updateByExample(T, Object) - Method in class com.wang.service.impl.BaseServiceImpl
 
updateByExampleSelective(T, Object) - Method in interface com.wang.service.IBaseService
根据Example条件更新实体record包含的不是null的属性值
updateByExampleSelective(T, Object) - Method in class com.wang.service.impl.BaseServiceImpl
 
updateByPrimaryKey(T) - Method in interface com.wang.service.IBaseService
根据主键更新实体全部字段,null值会被更新
updateByPrimaryKey(T) - Method in class com.wang.service.impl.BaseServiceImpl
 
updateByPrimaryKeySelective(T) - Method in interface com.wang.service.IBaseService
根据主键更新属性不为null的值
updateByPrimaryKeySelective(T) - Method in class com.wang.service.impl.BaseServiceImpl
 
user(BaseDto) - Method in class com.wang.controller.UserController
获取用户列表
User - Class in com.wang.model.entity
User
User() - Constructor for class com.wang.model.entity.User
 
UserController - Class in com.wang.controller
UserController
UserController(UserUtil, IUserService) - Constructor for class com.wang.controller.UserController
 
UserDto - Class in com.wang.model
 
UserDto() - Constructor for class com.wang.model.UserDto
 
UserEditValidGroup - Interface in com.wang.model.valid.group
User编辑校验分组
UserLoginValidGroup - Interface in com.wang.model.valid.group
User登录校验分组
UserMapper - Interface in com.wang.mapper
UserMapper
UserRealm - Class in com.wang.config.shiro
自定义Realm
UserRealm(UserMapper, RoleMapper, PermissionMapper) - Constructor for class com.wang.config.shiro.UserRealm
 
UserRole - Class in com.wang.model.entity
UserRole
UserRole() - Constructor for class com.wang.model.entity.UserRole
 
UserRoleDto - Class in com.wang.model
 
UserRoleDto() - Constructor for class com.wang.model.UserRoleDto
 
UserRoleMapper - Interface in com.wang.mapper
UserRoleMapper
UserServiceImpl - Class in com.wang.service.impl
 
UserServiceImpl() - Constructor for class com.wang.service.impl.UserServiceImpl
 
UserUtil - Class in com.wang.util
获取当前登录用户工具类
UserUtil(UserMapper) - Constructor for class com.wang.util.UserUtil
 

V

validException(BindException) - Method in class com.wang.config.ExceptionAdvice
捕捉校验异常(BindException)
validException(MethodArgumentNotValidException) - Method in class com.wang.config.ExceptionAdvice
捕捉校验异常(MethodArgumentNotValidException)
values() - Method in class com.wang.config.shiro.cache.CustomCache
获取所有的value
verify(String) - Static method in class com.wang.util.JwtUtil
校验token是否正确
A B C D E F G H I J K L M O P R S T U V 
Skip navigation links

Copyright © 2020 Pivotal Software, Inc.. All rights reserved.