spring boot 框架设计步骤:
1.poem.xml配置
2.application.yml配置
3.entiry实体
4.realm.Myrealm extends AuthorizingRealm权限认证:授权、判断权限
5.config.ShiroConfig权限认证Bean
6.登录页面
1.webapp添加static(css ,js)包
2.登录页面webapp下login.html
3.controller.IndexController类
4.验证码controller存放在session中 7.repository.UserRepository extends JpaRepository<User,Integer>类
8.controller.UserController类 @Controller,@requestMapping("/user")
1.login()类@responseBody,@requestMapping("/login") 9.util.StringUtil工具类static 10.repository.RoleRepository extends JpaRepository<Role,Integer>类@query,nativeQuery=true
1.interfece RoleService接口
2.RoleServiceImpl implement RoleService实现类@Service("RoleService")
3.controller.UserController类 @Controller,@requestMapping("/user") 11.main.html搭建采用easyui
1.webapp添加static(images ,easyui)包
2.登录页面webapp下main.html
3.定义一些icon 12.$("#tree").tree()
1.UserController.loadMenuInfo(HttpSession session)方法
2.repository.MenuRepository extends JpaRepository<Menu,Integer>类@query
3.interfece MenuService接口
4.MenuServiceImpl implement MenuService实现类@Service("MenuService") 13.var context="<iframe ></iframe>";
$("#tabs").tabs("add",{});
if($("#tabs").tabs("exist",node.text)){("#tabs").tabs("select",node.text)} 14.用户管理@Transient不映射
repository.UserRepository extends JpaRepository<User,Integer>,JpaSpecificationExecutor<User,Integer>类
Pageable pageable=new PageRequest();
Predicate predicate=cb.conjunction();
predicate.getExpressions().add();
controller.admin.UserAdminController类 @Controller,@requestMapping("/admin/user")
<table title="" class="easyui-datagrid" fitColumns="true" pagination="true" rownumbers="true" singleSelect="true" url="" fit="true"></table>
<thead><th field="" width="" align=""></th><th></th>..</thead> 15.<form id="fm" method="post">
<table id="" class="easyui-datagrid"><tr><td></td><td></td>..</tr><tr></tr>..</table>
</form> 16.var selectedRows=$("#dg").datagrid("getSelections");
$("#dg").dialog("open").dialog("setTitle",""); 17.显示所有角色
<div id="dlg" class="easyui-dialog" style="width: 450px;height: 300px;padding: 10px 20px"
closed="true" buttons="#dlg-buttons" data-options="onClose:function(){resetValue()}"> 18.shiro认证SimpleAuthorizationInfo info=new SimpleAuthorizationInfo();
info.addStringPermission(menu.getName());info.setRoles();
@RequiresPermissions(value="")
@RequiresPermissions(value={"",""},logical=Logical.OR)
AuthenticationInfo authcInfo=new SimpleAuthenticationInfo(user.getUserName(),user.getPassword(),"xxx"); 19.cascadeCheck:false 不级联

spring boot 框架设计步骤的更多相关文章

  1. spring boot 框架 启动更新项目,以及生成 "实体_"文件

    1.更新项目 clean  --->  更新项目 ---> package--->refresh 即可.(这几个步骤一个不能够少) 2.项目中的类的依赖关系存在,但是无法导入依赖 m ...

  2. 初识Spring Boot框架(二)之DIY一个Spring Boot的自动配置

    在上篇博客初识Spring Boot框架中我们初步见识了SpringBoot的方便之处,很多小伙伴可能也会好奇这个Spring Boot是怎么实现自动配置的,那么今天我就带小伙伴我们自己来实现一个简单 ...

  3. Spring Boot框架开发的Java项目在CentOS7上的部署

    需求:上级拿来一份Spring Boot框架开发的Java项目代码让我在服务器上运行起来,只说了一句该框架是自带了Tomcat(不用重新安装Tomcat),一份代码下有两个项目(一个管理端项目,一个用 ...

  4. Spring Boot 框架@Temporal(TemporalType.DATE)

    使用spring boot框架开发项目时,遇到这样一个问题: 查询pgSQL数据库中表A中某date数据类型的列B,想得到YYYY-MM-DD格式的日期,结果返回的为时间戳(长整型数据). 解决办法: ...

  5. 在Spring Boot框架下使用WebSocket实现聊天功能

    上一篇博客我们介绍了在Spring Boot框架下使用WebSocket实现消息推送,消息推送是一对多,服务器发消息发送给所有的浏览器,这次我们来看看如何使用WebSocket实现消息的一对一发送,模 ...

  6. 在Spring Boot框架下使用WebSocket实现消息推送

    Spring Boot的学习持续进行中.前面两篇博客我们介绍了如何使用Spring Boot容器搭建Web项目(使用Spring Boot开发Web项目)以及怎样为我们的Project添加HTTPS的 ...

  7. 基于Spring Boot框架开发的一个Mock

    背景:在项目后端接口开发还未完成,我们无法进行自动化接口用例的调试,希望与开发同步完成接口自动化用例的编写及调试,待项目转测后,可以直接跑自动化用例,提高测试效率. 选用的maven + Spring ...

  8. spring boot 学习(二)spring boot 框架整合 thymeleaf

    spring boot 框架整合 thymeleaf spring boot 的官方文档中建议开发者使用模板引擎,避免使用 JSP.因为若一定要使用 JSP 将无法使用. 注意:本文主要参考学习了大神 ...

  9. (Spring Boot框架)快速入门

    Spring Boot 系列文章推荐 Spring Boot 入门 Spring Boot 属性配置和使用 Spring Boot 集成MyBatis Spring Boot 静态资源处理 今天介绍一 ...

随机推荐

  1. 随心测试_数据库_001<论数据的重要性>

    测试工作中,数据的重要性 软测工程师:作为综合运用多学科知识,保障软件质量的重要岗位.需要我们学以致用,在工作中不断学习提升.以下:软测人员必备_数据库核心技能学习点,供大家学习参考. Q1:什么是: ...

  2. 分布式存储ceph——(2)openstack对接ceph存储后端

    ceph对接openstack环境 一.使用rbd方式提供存储如下数据: (1)image:保存glanc中的image: (2)volume存储:保存cinder的volume:保存创建虚拟机时选择 ...

  3. Divide Candies CodeForces - 1056B (数学)

    Arkady and his friends love playing checkers on an n×nn×n field. The rows and the columns of the fie ...

  4. 每次用 selenium 操作浏览器都还原了 (比如没有浏览器历史记录)

    每次用 selenium 操作浏览器都还原了 (比如没有浏览器历史记录)

  5. 技术的极限(6): 密码朋克精神(Cypherpunk Spirit)

    上一篇:技术的极限(5): 识别计算与技术背后的心智 下一篇:技术的极限(7): 处理复杂与分层 目录: ** 0x01 数据和App分离 ** 0x02 蒸汽朋克/赛博朋克/密码朋克 ** 0x03 ...

  6. [转帖]Oracle 各个版本的升级路线图

    从oracle 7开始(甚至更早版本)到oracle 9iR2. 来源: https://blog.csdn.net/cymm_liu/article/details/11647533 http:// ...

  7. stm32矩阵键盘扫描数据通过USB发送

                   Keyboard.c #include "keyboard.h"#include "my_usb.h"#include " ...

  8. python调试之pdb

    一.PDB调试命令 pdb调试命令 完整命令 简写命令 描述 args a 列出当前函数的参数 break b <行号> 在某一行设置断点 break b <文件名>:< ...

  9. logback日志模板

    logback.xml <?xml version="1.0" encoding="UTF-8"?> <configuration> & ...

  10. 树莓派3B+(一)

    第一步:安装raspbian系统 介绍:Raspbian是为树莓派设计,基于Debian的操作系统,由一个小团队开发.其不隶属于树莓派基金会,但被列为官方支持的操作系统. 下载地址:https://w ...