摘要: 1、新增类实现Interceptor,并加上@Intercepts注解,当Executor执行query或者StatementHandler prepare时拦截。 2、Invocation args中如果包含page则将MappedStatement 中的SqlSource 中的sql,添加分页功 阅读全文
posted @ 2017-06-02 14:51 cindy_zhu 阅读(164) 评论(0) 推荐(1) 编辑
摘要: 一、实现类继承AuthorizingRealm 1、实现方法doGetAuthenticationInfo,将定义的用户实体类填充map,realmPrincipals; 2、实现方法doGetAuthorizationInfo,填充roles ,Permissions; 二,创建subject 提 阅读全文
posted @ 2017-06-02 11:32 cindy_zhu 阅读(252) 评论(0) 推荐(1) 编辑