Spring Boot Starter Parent Usage in Maven

综合编程 2018-08-22 阅读原文

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.

责编内容by:soebes 【阅读原文】。感谢您的支持!

您可能感兴趣的

Let's make SpringBoot app start faster "How Fast is Spring?" is a session at Spring One Platform 2018. I watched the video and tried it by myself. ...
Micrometer: A dimensional-first metrics collector ... © Shutterstock / Kimtaro Looking for a vendor-neutral facade for application metrics? As a part of the all-n...
SpringCloud2.0入门4-springboot-admin监控 前言 上一节 为springboot项目添加springboot-admin监控 学习了基于springboot1.5自己注册到admin的方法。接下来学习结合Eureka使用以及2.0的改变。 1.5spring-boo...
springboot中的jsp支持 springmvc4中零配置的用法在springboot中同样有效。pom.xml配置 javax.servlet jstl org.springframework.boot spr...
SpringBoot开发案例构建分布式日志处理系统... 其实做这个Demo的目的是如何基于Elasticsearch构建网站日志处理系统,通过数据同步工具等一些列开源组件来快速构建一个日志处理系统,项目雏形初步成型中。 日志演示网址:http://es.52itstyle.com ...