springboot项目创建父级依赖

第一步创建父级工程

*注意父级工程这块一定要选择pom

选择父级的pom文件

<!--父工程对版本进行一个管理  -->
  <dependencyManagement>
     <dependencies>
      <dependency>
         <groupId>org.springframework.boot</groupId>
    	 <artifactId>spring-boot-dependencies</artifactId>
    	 <version>2.1.1.RELEASE</version>
    	 <type>pom</type>
    	 <scope>import</scope>
      </dependency>
     </dependencies>
  </dependencyManagement>
  <!-- jdk版本进行限制 -->
  <build>
    <plugins>
     <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
      <source>1.8</source>
      <target>1.8</target>
      </configuration>
     </plugin>
    </plugins>
  </build>

 

第二创建父级工程的module 选择父级项目 创建module

posted @ 2019-12-19 18:04  求知若渴的蜗牛  阅读(1474)  评论(0)    收藏  举报