美文网首页
eclipse创建springboot模块化项目

eclipse创建springboot模块化项目

作者: 魅影_2018 | 来源:发表于2018-03-21 15:30 被阅读0次

    1.右键>new>Maven Project


    image image image

    修改POM文件,加入子模块依赖

        <modules>
            <module>yxmy-model</module>
            <module>yxmy-web</module>
            <module>yxmy-service</module>
            <module>yxmy-repo</module>
        </modules>
        
        
    
    

    右键主项目>new>Maven module


    image.png
    输入子模块名称
    选择版本
    点击finish

    修改子模块POM文件

    <parent>
        <groupId>com.xhjy.yxmy</groupId>
        <artifactId>yxmy</artifactId>
        <version>0.0.1-SNAPSHOT</version>
      </parent>
      
      <groupId>com.xhjy.yxmy-model</groupId>
      <artifactId>yxmy-model</artifactId>
      
      <version>0.0.1-SNAPSHOT</version>
      <name>yxmy-model</name>
      <url>http://maven.apache.org</url>
      <packaging>jar</packaging>
      
      <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      </properties>
    

    其他几个子模块依次按照此步骤即可完成
    版权声明:本文为博主原创文章,转载请注明出处。

    相关文章

      网友评论

          本文标题:eclipse创建springboot模块化项目

          本文链接:https://www.haomeiwen.com/subject/maygqftx.html