首先,可以直接在项目的pom.xml文件中查看。打开项目的根pom文件,找到spring-boot-starter-parent依赖,这是Spring Boot的父级依赖。然后,可以搜索tomcat.version,如果能够找到这个标签,那么它后面的值就是当前Spring Boot项目使用的Tomcat版本。不过,这种方式需要项目中已经明确指定了Tomcat的版本。其次,...
查找特定Spring Boot版本对应的Tomcat版本 要查找特定Spring Boot版本对应的Tomcat版本,可以采取以下步骤: 查看Spring Boot项目的pom.xml文件: 在Spring Boot项目的根目录下,找到pom.xml文件。如果项目使用了Spring Boot的父POM(spring-boot-starter-parent),则可以在该POM文件中查找Tomcat的版本。通常,Tomcat的版本会在...
1、解析Spring Boot父级依赖 1<parent>2<groupId>org.springframework.boot</groupId>3<artifactId>spring-boot-starter-parent</artifactId>4<version>1.5.6.RELEASE</version>5</parent> 这块配置就是Spring Boot父级依赖,有了这个,当前的项目就是Spring Boot项目了,spring-boot-starter-parent是一个特殊的star...
Spring Boot 集成undertow作为web容器 默认是tomcat,也可以启用undertow。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> ...
1、查询springboot内嵌的版本 使用idea等工具可以直接通过pom文件查看下面parent里面的Tomcat版本 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.12.RELEASE</version> <type>pom</type> ...
</parent> 1. 2. 3. 4. 5. 6. 打开maven中央仓库: https://mvnrepository.com/搜索并找到对应依赖包spring-boot-starter-parent: 点击进去,往下拉找到笔者所使用的2.0.3.RELEASE版本,点击该版本进入,即可找到其内嵌的tomcat版本为8.5.31。通过此方法,还可以查询到该库所依赖的其他库的版本。
方法一:使用idea作为开发工具的可以直接点击项目下面ExternalLibraries,搜索字符串“tomcat”可以看到tomcat版本为9.0.19 方法二:打开本地maven仓库springboot父依赖配置,路径如:C:\Users\Administrator.m2\repository\org\springframework\boot\spring-boot-dependencies 我是2.1.5版本的springboot,打开2....
基于上面的思考,我找到了pom.xml 文件,parent中点击进去,找到spring-boot-dependencies 点进去,再找到tomcat 依赖的版本,可以看到原来是9.0.21.我们手动改成9.0.30 。然后我们pom.xml maven-Reimport。最后重启项目。 启动发现,引用的Tomcat已经是我们最新的9.0.30啦。 那怎么升级呢?如果lib 文件和项目没有分开,直...