仓库地址:https://gitee.com/dromara/RuoYi-Vue-Plus
后台项目
基础修改操作
-
修改数据库、缓存地址即可启动
-
添加SwaggerUI
- 需要分别将根节点pom和ruoyi-common-doc模块pom文件中对应的依赖
springdoc-openapi-starter-webmvc-api
改为springdoc-openapi-starter-webmvc-ui
<dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-starter-webmvc-api</artifactId> <version>${springdoc.version}</version> </dependency> <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> <version>${springdoc.version}</version> </dependency>
- 在ruoyi-admin项目的application.yaml文件的springdoc节点添加如下信息
springdoc: api-docs: # 是否开启接口文档 enabled: true swagger-ui: enabled: true
- 需要分别将根节点pom和ruoyi-common-doc模块pom文件中对应的依赖
添加扩展模块
- 添加扩展模块文件夹、扩展模块需要在父节点pom文件中添加相应信息
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>ruoyi-vue-plus</artifactId> <groupId>org.dromara</groupId> <version>${revision}</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>zker-modules</artifactId> <packaging>pom</packaging> <modules> <module>zker-demo1</module> </modules> <description> zker-modules 业务模块 </description> </project>
- 为项目增加新模块依赖,需要分别在根节点pom和ruoyi-admin项目pom文件中添加
<dependency> <groupId>org.dromara</groupId> <artifactId>zker-demo1</artifactId> </dependency>
- 在admin项目的application.yaml文件中的springdoc节点添加对应的模块信息
springdoc: ... #这里定义了两个分组,可定义多个,也可以不定义 group-configs: - group: 1. ZKer扩展项目 packages-to-scan: cn.zhaokeyong.zker
前端项目
- 前端对应多个项目,包括:
- 官方的plus-ui: gitee、github、gitcode
- 基于vben5:ruoyi-plus-vben5
- 基于soybean:ruoyi-plus-soybean
- 需要说明的是:项目中的代码生成器生成的前端仅用于官方plus-ui项目