美文网首页
springboot-pom.xml-spring-boot-s

springboot-pom.xml-spring-boot-s

作者: 桑鱼nicoo | 来源:发表于2020-02-29 22:24 被阅读0次

POM文件

父项目

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.2.4.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

SpringbBoot的仲裁中心 <name>Spring Boot Dependencies</name> ,它来管理SpringbBoot的所有依赖版本,所以导入依赖的时候可以不写版本,在dependencies里面管理的依赖自然会声明版本号

启动器

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

springboot将所有的功能场景都抽取出来,做成一个个的starters(启动器),只需要在项目里面引入这些starter相关场景的所有依赖都会导入进来。要用什么功能就导入什么场景的启动器

相关文章

网友评论

      本文标题:springboot-pom.xml-spring-boot-s

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