spring-boot-starter-web会引入了哪些jar

2025-04-17 21:45:42

1、在第一次创建springboot项目中,我们会引入很多的启动器,这里简单介绍一下spring-boot-starter-web启动器会引入哪些依赖jar包。

spring-boot-starter-web会引入了哪些jar

2、首先创建号一个springboot的项目,这里我们只引入一个spring-boot-starter-web,暂时不引入其他的依赖。

spring-boot-starter-web会引入了哪些jar

3、在idea软件的右侧,会有菜单栏,我们找到MavenProjects,点击进入。

spring-boot-starter-web会引入了哪些jar

4、我们点击加号+,将项目的pom.xml文件导入。这里有很多的功能,这里简单介绍一下ShowDependencies。

spring-boot-starter-web会引入了哪些jar

5、ShowDependencies主要是用来展示你引入的依赖,并且绘制出来依赖关系。可以直观的看出引入的依赖。

spring-boot-starter-web会引入了哪些jar

6、可以看到spring-webmvc,spring-boot-starter-validation,spring-boot-starter,spring-boot-starter-json,spring-boot-starter-tomcat。这5个基础依赖。

spring-boot-starter-web会引入了哪些jar

7、因为spring-webmvc会依擅糗菰怅赖spring相关的jar,maven项目会自动的导入相关的依赖,这里的图片太大,无法展示完全。可以在idea自行查看都有哪些依赖。

spring-boot-starter-web会引入了哪些jar
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢