- 博客(2)
- 收藏
- 关注
原创 Shiro设定密码匹配规则(自定义密码验证匹配器)
1.自定义一个Realm类,继承AuthorizingRealm。2.重写,doGetAuthorizationInfo(用于实现授权)和doGetAuthenticationInfo(用于实现验证)方法@Override protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principal) ...
2019-09-05 17:42:40
1953
原创 springboot jpa动态生成sql
springboot jpa动态拼装生成sql第一步、在ServiceImpl中autowired注入 EntityManager对象,定义三个内部成员,CriteriaBuilder 、CriteriaQuery、Root,注入的泛型是要查询的Entity。@Autowired private EntityManager entityManager; // 安全查询工厂 ...
2019-08-29 09:49:39
1828
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人