Loading

06 2019 档案

摘要:角色本质上就是一组权限的集合 起了一个别名。 1.默认不支持连接数据库 第一个demo还使用假数据 阅读全文
posted @ 2019-06-27 21:21 mikemhm 阅读(334) 评论(1) 推荐(0)
摘要:第一步:重写Realm 上面这个图,就是说为啥需要重写Realm, 第二步:配置 3.在Controller中使用 我这里就做一个模拟,不实际跳转了。 阅读全文
posted @ 2019-06-27 21:05 mikemhm 阅读(1916) 评论(0) 推荐(0)
摘要:第一步 说明: 数据库的用户信息使用的是datasources.ini配置文件中的假数据。因为Shiro默认就是从配置文件读取信息 阅读全文
posted @ 2019-06-27 19:39 mikemhm 阅读(6325) 评论(0) 推荐(0)
摘要:解释: 1.对于在第二步中 sheet的含义是xls文件中的一个表的名字。 2.远程下载文件 阅读全文
posted @ 2019-06-25 14:45 mikemhm 阅读(322) 评论(0) 推荐(0)
摘要:1.创建注解 2.定义aop日志类 3.使用 在需要使用日志的地方,加上自定义的注解@LogAnnotation("自定义注解"),在方法执行时,会自动增强,加入日志aop进行日志的处理。 4. 导入的依赖 阅读全文
posted @ 2019-06-25 09:49 mikemhm 阅读(673) 评论(0) 推荐(0)
摘要:1 /** 2 * 获取用户名 从session中 3 * 1.怎么拿到session? 不敢保证只有一个 装配不行 传参不行 4 * 5 * 通过RequestContextHolder 中的方法 可以获取的是当前请求 6 */ 7 ServletRequestAttributes request 阅读全文
posted @ 2019-06-25 09:27 mikemhm 阅读(576) 评论(0) 推荐(0)
摘要:/** * Created by mhm on 2019/6/24. */@RunWith(SpringJUnit4ClassRunner.class)public class LuceneTest { @Test public void test1() throws IOException { / 阅读全文
posted @ 2019-06-24 22:02 mikemhm 阅读(190) 评论(0) 推荐(0)