A super easy-to-use basic framework for permission management-Ruoyi

A super easy-to-use basic framework for permission management-Ruoyi

The current project, whether it is a website, app or public account, is indispensable for rights management and user role design. Today I will share with you a website dedicated to generating basic user rights management-Ruoyi. Here I will directly teach you how to download Ruoyi and use it to generate the permission management code that you want.

1. Download the resource on Code Cloud
Enter "Ruoyi" on the code cloud to search. There are several versions of this resource as follows:
1、完整版(springboot框架前后端不分离)
地址:https://gitee.com/y_project/RuoYi?_from=gitee_search
1、精简版(springboot框架前后端不分离)
地址:https://gitee.com/y_project/RuoYi-fast?_from=gitee_search
1、修改版(springboot框架前后端不分离)
地址:https://gitee.com/y_project/RuoYi-fast?_from=gitee_search
1、vue版(springboot框架前后端分离,前端vue)
地址:https://gitee.com/y_project/RuoYi-fast?_from=gitee_search
1、扩展版(springboot框架前后端不分离,加入mybatis-plus)
地址:https://gitee.com/dotstable/depending_on_the_framework?_from=gitee_search

Under normal circumstances, we download the full version, just download the project and import it to your IDE. I use idea here. This project is a maven project of soringboot framework, so I will not elaborate on how to import it.

2. Project environment deployment
Then the first point says, download the project and import it to idea, you will see the following picture:

Insert picture description here
2. Prepare a mysql database on your computer or server and create a database named ruoyi, and then execute the two scripts in the red box below the ruoyi database.
Insert picture description here
3. Change the database connection address in RuoYi-ruoyi-admin-main-resources-application-druid.yml to the address of the ruoyi database you created earlier, and modify the database user name and password.
Insert picture description here
4. Then start the project and start the class-RuoYi \ ruoyi-admin \ src \ main \ java \ com \ ruoyi \ RuoYiApplication.java. After the startup is successful, then enter http://127.0.0.1:80 in the browser to see the login interface as shown in the figure below:
Default login user name: admin Password: 123456 Specifically you can go to the sys_user under the database ruoyi to see, The password is encrypted.
Insert picture description here

Three, generate user permission codes
1. After logging in, you will see the picture below: see for yourself. I only talk about code generation here. Select sys_config (for example) in the code generation module, and then click Edit. You can select which function you need to select.

Insert picture description here
2. After clicking Edit, you will see the following picture. You can set which fields are required for the corresponding operation.
Insert picture description here
3. Click Save after making changes, and then generate the code. Then will download a zip package, which contains the SQL script, background (controller, service, mapper, entity) and page you need. You only need to prepare an empty project of the springboot framework, and then execute the downloaded SQL script of the corresponding database, and copy the code to the corresponding location.

I hope this blog post will be helpful to all students. If you see a similar code generation project, please leave a message!

Published 25 original articles · praised 58 · 40,000+ views

Guess you like

Origin blog.csdn.net/student_zz/article/details/105561016