Preface
1. Official website address
2. Online documentation
3. Demonstration address
4. Code download a>
5. Wild version of Zoyi development documents
This article includes front-end and back-end, recording some problems encountered during development.
front end
Details of creating routes
1. Enter the page from
系统管理
to create a menu. After the menu is successfully created, refresh the page. However, the menu just created will not appear. 2. Solve the problem that the menu is not displayed after creation. You need to enter the page from to authorize the menu. After authorization, the menu will display normally.菜单管理
系统管理
角色管理
rear end
Start backend project details
Source code download
This article introduces the use of
IDEA
to start the Roy project.
Download the project source code from the official website to a customizedIDEA
workspace. It is recommended to usegit
cloning, so that updates can be synchronized at any time.
Environment setup
Backend
JDK >= 1.8 (recommended version 1.8, greater than or equal to 1.8)
Mysql >= 5.7.0 (recommended version 5.7 , greater than or equal to 5.7)
Maven >= 3.0 (greater than or equal to 3.0)
Redis >= 5 (greater than or equal to 5)
Front end
node >= 12.0 (greater than or equal to 12.0)
Open source code using IDEA
Install first
IDEA
Development environment
Do not use Import project to import, but use Open to open
After opening, wait for the project to load Maven. If the Internet speed is not good, the waiting time will be longer. The loading is completed as shown below.
Modify database configuration
Open the
application-druid.yml
file under the ruoyi-admin submodule, and change the username and password of the main database (ry-vue) data source to your own database name and password. Localhost can be changed according to Modify the actual situation by yourself, as shown in the figure below
The database name with a dash cannot be created through cmd, and underscores should be used
Modify file path and port
Open the file under the ruoyi-admin submodule
application.yml
. The profile and port can be modified according to the actual situation.
You must add < after the project path. /span>uploadPath
only works
Create database using cmd
Find the two files
quartz.sql
andry_202311.sql
in the sql folder in the project. Create the database ry_vue and import thequartz.sql
andry_202311.sql
scripts in sequence.
Connect
MySQL
Database:mysql -u root -p
Create database:create database ry_vue;
Enter or switch database:use ry_vue
Import .sql file:
source D:\A_fullStack\RuoYi-vue\sql\quartz.sql
source D:\A_fullStack\RuoYi-vue\sql\ry_202311.sql
Download and install JDK
1. Java basics, download and install JDK, windows command line window, print output, dos, public, class, static, void, main, String, int, System, out, println
2. Super detailed graphic tutorial on Java JDK download, installation and environment configuration
3. The most detailed jdk installation and environment configuration (nanny-level tutorial)
Download and install Mysql
1. MySQL database download and installation tutorial (latest version)
2. MySQL Part 01_MySQL 8.0 download and installation (detailed tutorial)
Download and install Maven
1. Maven download and installation tutorial (super detailed)
Download and run Redis
1. Download the Windows version of Readis (GitHub)
2. Detailed graphic tutorials on the installation and deployment of Redis under Windows (Redis installation and use of visualization tools)
Redis common commands
Start service:redis-server.exe redis.windows.conf
Uninstall service:redis-server --service-uninstall
Start service:redis-server --service-start
Stop service:redis-server --service-stop
Start the ROY project
Just use
IDEA
to start.
After the above environment and configuration are completed, if an error is reported during startup"sysConfigController"
, thenRedis
can be closed and restarted. That's it.