加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-14 01:04:13 所属栏目:百科 来源:网络整理
导读:BOS物流项目03模块间的依赖引用 一bos-domain模块 二bos-utils模块 三bos-dao模块 四bos-service模块 五bos-web模块 六源码下载 BOS物流项目03———模块间的依赖引用 各个模块之间存在引用的关系,那么我们下面来看一下 一、bos-domain模块 这个模块依赖就不
  • 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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读