5.ruoyi 新增业务子模块

https://doc.ruoyi.vip/ruoyi/document/htsc.html#%E6%96%B0%E5%BB%BA%E5%AD%90%E6%A8%A1%E5%9D%97

按照ruoyi的步骤添加:

例如添加模块名称为party

1、ruoyi-admin下面pom.xml中添加ruoyi-party

        <!-- 业务模块-->
		<dependency>
		    <groupId>com.ruoyi</groupId>
		    <artifactId>ruoyi-party</artifactId>
		</dependency>

2、在整个项目文件夹根目录的pom.xmo添加如下代码

<!-- 业务模块-->
<dependency>
    <groupId>com.ruoyi</groupId>
    <artifactId>ruoyi-party</artifactId>
    <version>${ruoyi.version}</version>
</dependency>
<modules>
     ......
     <module>ruoyi-party</module>
</modules>

3、项目根目录新建ruoyi-party文件夹,文件夹里结构如下,注意新建一个pom.xml

pom.xml内容如下:

<?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</artifactId>
        <groupId>com.ruoyi</groupId>
        <version>4.8.1</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>ruoyi-party</artifactId>

    <description>
         业务模块
    </description>

    <dependencies>

        <!-- 通用工具-->
        <dependency>
            <groupId>com.ruoyi</groupId>
            <artifactId>ruoyi-common</artifactId>
        </dependency>

    </dependencies>

</project>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值