Skip to content

javalanxiongwei/springboot-shiro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

springboot-shiro

##SpringBoot整合Shiro的案例 ##1、项目文件分析: 项目是使用SpringBoot+Freemarker+Shiro 相关文件说明: DepartmentController:部门相关的控制器 EmployeeController:员工相关的控制器 LoginController:登陆相关的控制器 MainController:首页相关的控制器 UserRealm:用户的Realm BootApplication:启动类. login.ftl:登陆页面 当访问http://localhost:8088/main的时候展示main.ftl的页面. 当访问http://localhost:8088/login的时候展示login.ftl的页面. 当访问http://localhost:8088/department的时候展示department/list.ftl的页面. 当访问http://localhost:8088/employee的时候展示employee/list.ftl的页面.

##2、测试 打开BootApplication右键run启动 当访问http://localhost:8088/main的时候跳转到了登陆页面.默认密码是: 使用的是静态认证.

账号 密码
zhangsan 666
lisi 888

zhangsan:用户拥有/employee/department的请求权限 lisi:用户拥有/department的请求权限

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published