dp-BOOT: Spring Boot-based permission management system
Downcodes editor: dp-BOOT is a permission management system based on the Spring Boot framework. It supports operation permissions and data permissions. The backend of the system uses Spring Boot, MyBatis, and Shiro, and the frontend uses adminLTE, vue.js, bootstrap-table, tree-grid, and layer. The frontend and backend are encapsulated to quickly complete CRUD development. Based on the project structure, the code generator can generate some front-end and back-end code, making it easier to carry out secondary development. The project is built using Maven modules to facilitate the expansion of custom modules.
Project introduction
1. Lightweight rapid development framework: Developed based on Spring Boot, projects can be developed and delivered quickly.
2. Friendly code structure: The code structure is clear and well-commented, making it easy to read and secondary develop. For naming conventions and project layering conventions, refer to Alibaba JAVA development specifications.
3. Front-end and back-end packaging: quickly implement CRUD development.
4. Code generator: supports generating part of the code through the beetl template, which can be directly generated into the project path without the need for secondary deployment (see documentation).
5. Permission management: role-based permission management, supporting operation permissions and data permissions.
6. Modular development: Based on Maven modular development, personalized business modules can be quickly expanded.
7. Integrate common components: currently select2, switchery and rich text components have been integrated.
REST interface support
1. JWT authorization: The JWT solution is used to solve the encrypted transmission of authorization information and is compatible with server-side verification.
2. Interface request link interception mode: All interface request addresses are prefixed with /rest.
3. Anonymous access interface: Anonymous access can be achieved by adding @RestAnon annotation.
4. Login address: /rest/auth. After passing the verification, you can obtain the token.
5. Token status verification: Call /rest/authStatus to asynchronously verify the token status.
6. Token verification parameters: All legality parameters are managed on the server side, and verification can be expanded by yourself, such as timestamp, restricted IP, UA detection and other policies.
Technical solution
| Technology | Description |
|---|---|
| Core Framework | Spring Boot |
| ORM framework | MyBatis |
| Security Framework | Shiro |
| template framework | beetl |
| Home page frame | adminLTE (Bootstrap) |
| JS framework | vue.js |
| Table plug-in | bootstrap-table (extended paging jump) |
| Tree table | tree-grid (based on bootstrap extension) |
| tree plug-in | ztree |
| Pop-up component | layer |
| date component | laydate |
| Drop-down selection component | select2 |
| switch components | switchery |
| Rich text component | wangEditor |
| form validation | validator |
Operation effect
Example:
`
//Sample code omitted
`
Summarize
dp-BOOT is a feature-rich and easily extensible permission management system that can help developers quickly build safe and reliable applications. Whether it is rapid prototyping or large-scale project construction, dp-BOOT can provide strong support.