Shiro整合Thymeleaf
1、导入Shiro-Thymeleaf整合依赖

2、前端index中修改add和update 判断权限,加入登录操作

3、ShrioConfig中 加入bean ShiroDialect 整合Shiro Thymeleaf

4、UserRealm中 认证中获取当前用户的session

5、 细节:登录成功后 登录按钮应该消失,需要在前端加个判断 user是否为空

1、导入Shiro-Thymeleaf整合依赖

2、前端index中修改add和update 判断权限,加入登录操作

3、ShrioConfig中 加入bean ShiroDialect 整合Shiro Thymeleaf

4、UserRealm中 认证中获取当前用户的session

5、 细节:登录成功后 登录按钮应该消失,需要在前端加个判断 user是否为空
