The background of the article
The company needs to build a new system, because I have no experience in building frameworks, so I found the Ruoyi framework on the Internet. In order to learn and understand the Ruoyi framework, I am writing this article. The first is to organize the development notes. The second is to prepare for future review, and the third is to provide detailed development notes for beginners.
development process
Building the system
1. Preliminary preparations It
is recommended that you go to the Ruoyi official website to read the relevant documents before building the system to understand the configuration requirements and environmental requirements of Ruoyi before building.
If you follow the official website: http://www.ruoyi.vip/
As shown in the figure:
If the version is different, it is recommended to replace it, and the jdk version is recommended to be replaced, otherwise there will be an invalid source distribution: 8, as shown in the figure:
2. Import the project
System files can be downloaded directly from the official website. If it is not enough, you must first have a git account. It is recommended that you register one first, then enter the official website, and then enter
"Download Now" to enter the git download code. Here I downloaded the zip file.
After obtaining the code, first check whether your related configurations are complete: jdk1.8, maven and mysql. In addition, you need to create a new maven repository, which is recommended to be stored in one disk.
After the preparations are done, decompress the zip file, click file->Open in the idea, select the decompressed Ruoyi folder, import the project:
then search for maven in file->settings, and replace the maven configuration: the
relevant configuration is based on your own situation choose.
After configuration, select import-change in the lower right corner to import the maven package.
After completion, go to the application-druid.yml file in the resources folder under src in ruoyi-admin to
modify the database connection file:
adjust it according to your own situation.
Then go to the application.yml file, the path is the same as above, and modify the port number:
Finally, go to the RuoYi\ruoyi-admin\src\main\java\com\ruoyi\RuoYiApplication.java file, start the project, and go directly to the browser to access localhost:8080 after startup.
(If there is still an invalid source release version: 8 when starting, please go to
Modify the jdk version before starting the project.)
This article is only for the initial project import document. For the modification and improvement of the system, see the later article.