依赖管理机制体现在什么地方?
在 pom.xml 的 parent 下,引入了 springboot 的父项目
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.4.5</version></parent>
在 pom.xml 的 dependencies 下,引入一个 starter-web 的启动器:
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency>
然后所有的依赖包就被导入进来了
在开发的过程中,我们无序担心任何导包的问题,就可以直接使用了。
URL:
springboot 提供的 starter:https://docs.spring.io/spring-boot/docs/current/reference/html/using-spring-boot.html#using-boot-starter
