您的位置:首页 > 其它

BOS物流项目03———模块间的依赖引用

2018-01-01 13:08 337 查看
BOS物流项目03模块间的依赖引用
一bos-domain模块

二bos-utils模块

三bos-dao模块

四bos-service模块

五bos-web模块

六源码下载

BOS物流项目03———模块间的依赖引用

各个模块之间存在引用的关系,那么我们下面来看一下

一、bos-domain模块

这个模块依赖就不需要导入了,但是我们需要创建包(空的)

com.qwm.bos.domain



二、bos-utils模块

这个模块依赖就需要导入bos-domain,而且我们需要创建包(空的)

com.qwm.bos.utils

<?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>bos-parent</artifactId>
<groupId>com.qwm</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bos-utils</artifactId>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>com.qwm</groupId>
<artifactId>bos-domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>




三、bos-dao模块

这个模块依赖就需要导入bos-domain,而且我们需要创建包(空的)

com.qwm.bos.dao

<?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>bos-parent</artifactId>
<groupId>com.qwm</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bos-dao</artifactId>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>com.qwm</groupId>
<artifactId>bos-utils</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

</project>




四、bos-service模块

这个模块依赖就需要导入bos-domain,而且我们需要创建包(空的)

com.qwm.bos.service

<?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>bos-parent</artifactId>
<groupId>com.qwm</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bos-service</artifactId>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>com.qwm</groupId>
<artifactId>bos-dao</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

</project>




五、bos-web模块

这个模块依赖就需要导入bos-domain,而且我们需要导入 下面的文件

https://github.com/wimingxxx/bos-parent/tree/master/bos-web/src/main/webapp

<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/maven-v4_0_0.xsd"> <parent>
<artifactId>bos-parent</artifactId>
<groupId>com.qwm</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bos-web</artifactId>
<packaging>war</packaging>
<name>bos-web Maven Webapp</name>

<dependencies>
<dependency>
<groupId>com.qwm</groupId>
<artifactId>bos-domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

</project>




六、源码下载

https://github.com/wimingxxx/bos-parent
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: