摘要: 1、创建一个登陆拦截器SecurityInterceptor,它继承HandlerInterceptorAdapter类 2、创建一个URL拦截器WebSecurityConfig类,主要在这个类中实现URL拦截。注意:具体的拦截依据项目而定。 3、自己写一个controller和一些jsp,就可以 阅读全文
posted @ 2018-12-11 14:32 小白啊小白,Fighting 阅读(7942) 评论(0) 推荐(0) 编辑
摘要: 1、首先在pom.xml中添加下面配置 2、打包操作 这样就打包成功了,打包的路径在D:\springboot-shiro-demo1\focus-master\focus\target\focusDemo.jar 3、测试运行,点击idea的terminal,进入包目录D:\springboot- 阅读全文
posted @ 2018-12-11 11:27 小白啊小白,Fighting 阅读(1337) 评论(2) 推荐(0) 编辑