When you try to consume a standard C4C Web service from SoapUI, you may meet with this error message below: Authorization role missing for service XXX ...
分类:
Web程序 时间:
2020-09-08 20:47:48
阅读次数:
51
Shiro默认使用自带的IniRealm,IniRealm从ini配置文件中读取用户的信息,大部分情况下需要从系统的数据库中读取用户信息,所以需要自定义realm。 1,Realm接口 最基础的是Realm接口,CachingRealm负责缓存处理,AuthenticationRealm负责认证,A ...
分类:
数据库 时间:
2020-09-04 17:45:51
阅读次数:
77
1.1加密方式1(借助spring框架工具类DigestUtils) 1构建一个盐值对象 String salt = UUID.randomUUID().toString();// 随机字符串 /- 2对密码进行盐值加密(加密算法MD5-特点:不可逆,相同内容加密结果也相同) String newP ...
分类:
其他好文 时间:
2020-09-03 16:47:34
阅读次数:
56
1.ansible命令集ansible:定义并运行简单任务。ansible-config:查看、编辑、管理ansible配置。ansible-doc:文档查看工具。ansible-galaxy:共享和下载roles的工具。ansible-inventory:查看inventory的信息。ansible-playbook:执行playbook。ansible-pull:从仓库中拉去playbook。
分类:
其他好文 时间:
2020-08-19 20:09:27
阅读次数:
115
上面是映射器的创建 现在是发送sql 有2种方法:sqlsession的;Mapper的 通过映射器实现sql的发送 RoleMapper roleMapper = sqlSession,getMapper(RoleMapper.class); Role role = roleMapper.getR ...
分类:
其他好文 时间:
2020-08-13 22:20:37
阅读次数:
75
一.用户授权 1)普通权限 grant ${autoType1, autoType2, autoType3, ...} to ${userName} identified by ${password}; 例1: grant connect, resource to scott identified ...
分类:
数据库 时间:
2020-08-13 12:24:41
阅读次数:
188
spring boot 2.1 + mybatis + layui + shiro后台权限管理系统:1. layUI前端界面,thymeleaf模版;2. shiro权限控制,redis缓存,密码输错次数限制等;3. springboot静态资源配置;4. pageHelper分页;5. ztree;6. 多数据源配置;7. druid连接池;8. log4j2日志配置等
分类:
编程语言 时间:
2020-08-08 10:37:29
阅读次数:
150
在SecurityConfig中加入 @Bean RoleHierarchy roleHierarchy(){ RoleHierarchyImpl roleHierarchy = new RoleHierarchyImpl(); String hierarchy ="ROLE_adb > ROLE_ ...
分类:
编程语言 时间:
2020-08-06 13:13:35
阅读次数:
75
查看Centos版本 CentOS Linux release 7.7.1908 (Core) passwdyum update -yyum makecacheyum install fail2ban -yyum install epel-release -yyum makecacheyum upd ...
分类:
其他好文 时间:
2020-08-05 23:26:48
阅读次数:
100