Starter机制主要的作用是整合依赖,更方便地注入依赖,自动引入jar包
4.0.0 org.example com.wdy.springboot 1.0-SNAPSHOT 8 8 1.18.22 org.springframework.boot spring-boot-starter-parent 2.5.10 org.springframework.boot spring-boot-starter-web org.projectlombok lombok ${project.lombok.version} org.mybatis.spring.boot mybatis-spring-boot 2.2.2
父工程的主要作用
1.properties 的版本在添加具体依赖可以直接使用
2.DependencyManagement 提供了丰富的maven依赖
org.springframework.boot
spring-boot-starter-parent
2.5.10
子工程
spring-boot-starter-XXX,无需写版本号。直接由父工程继承来
org.springframework.boot spring-boot-starter-web



