网站开发上线流程semir是什么牌子衣服
新建子模块
Maven多模块下新建子模块流程案例。
1、新建业务模块目录,例如:ruoyi-test。
2、在ruoyi-test业务模块下新建pom.xml文件以及src\main\java,src\main\resources目录。
<?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>x.x.x</version></parent><modelVersion>4.0.0</modelVersion><artifactId>ruoyi-test</artifactId><description>test系统模块</description><dependencies><!-- 通用工具--><dependency><groupId>com.ruoyi</groupId><artifactId>ruoyi-common</artifactId></dependency></dependencies></project>
3、根目录pom.xml依赖声明节点dependencies中添加依赖
<!-- 测试模块-->
<dependency><groupId>com.ruoyi</groupId><artifactId>ruoyi-test</artifactId><version>${ruoyi.version}</version>
</dependency>
4、根目录pom.xml模块节点modules添加业务模块
<module>ruoyi-test</module>
5、ruoyi-admin目录pom.xml添加模块依赖
<!-- 测试模块-->
<dependency><groupId>com.ruoyi</groupId><artifactId>ruoyi-test</artifactId>
</dependency>
6、测试模块
在ruoyi-test业务模块添加com.ruoyi.test包,新建TestService.java
public class TestService
{public String helloTest(){return "hello";}
}
在ruoyi-admin新建测试类,调用helloTest成功返回hello代表成功。
