Code Monkey home page Code Monkey logo

crud_demo's Introduction

crud_demo


技术栈

Springboot+SpringDataRest+SpringSecurity+React+Antd

目标

  • 简化前后端代码重复劳动,提高代码重用与开发效率。
  • 对于典型CRUD业务场景,后端只需要确定Entity,前端只需要根据Entity属性确定FormItem种类便可完成页面生成。
  • 解耦权限管理与资源权限的访问控制。
  • CRUD覆盖了大量的业务场景,处理好前后端模块化易于扩展敏捷构建各类业务场景。

功能介绍

  • 主要实现了Model对象的增删改列表等功能,通过SpringDataRest提供数据的Rest接口,结合SpringSecurity注解实现资源页面、资源权限管理。
  • 可以通过@RepositoryRestController扩充model对象Rest Api。
  • 前端根据实体对象生成一致的增删改列表页面,并实现分页,以及各字段的排序、过滤。前端根据model属性可配置多种输入组件:input、number、select、radio、file等。
  • 列表和表单可以配置属性值的可见性。

后续工作

  • 补充代码模板生成,通过反射、注解等自动生成实体页面入口数据。
  • 补充缓存使用、事件驱动等事例。

使用方法

  • 请配置Properties中的Mysql地址,以及上传文件路径。
  • 运行SysUserRepositoryTest,生成事例管理员用户和一般用户。
  • 本事例提供三个实体,分别配置了权限检查和没有配置权限,以及实体关联关系。

展示截图

image image image

crud_demo's People

Contributors

waylonsong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.