综合编程

Spring Boot Starter Parent Usage in Maven

微信扫一扫,分享到朋友圈

Spring Boot Starter Parent Usage in Maven
0

I quite often see Spring Boot projects which are using the spring-boot-starter-parent
as the following:

  4.0.0

  
    org.springframework.boot
    spring-boot-starter-parent
    2.0.4.RELEASE
    
  

  
    UTF-8
    UTF-8
    1.8
  
  ...
  
    
      
        org.springframework.boot
        spring-boot-maven-plugin
      
    
  

So far so good. Notices something? I have to mention that you can do it
a little bit shorter like this:

  4.0.0

  
    org.springframework.boot
    spring-boot-starter-parent
    2.0.4.RELEASE
    
  

  ...
  
    
      
        org.springframework.boot
        spring-boot-maven-plugin
      
    
  

The properties defined in the first example are alread defined in the spring-boot-starter-parent
pom file which means you do not need to define
them another time cause you already inherit them via the parent.

阅读原文...


微信扫一扫,分享到朋友圈

Spring Boot Starter Parent Usage in Maven
0

Avatar

Why Fortnite Avoided the Google Play Store

上一篇

Apple and Google's app store businesses are coming under pressure — and the companies could...

下一篇

评论已经被关闭。

插入图片

热门分类

往期推荐

Spring Boot Starter Parent Usage in Maven

长按储存图像,分享给朋友