How to find out which version of Tomcat is built in spring boot

I used spring loading in the project. It has an integrated Tomcat server. I recognize jar spring-boot-starter-tomcat-1.2.5.RELEASE.jar . I needed to make certain settings related to Tomcat on a Linux server.

How can I find out which version of Tomcat is used in this?

+13
source share
6 answers

You can also check the version without leaving your IDE , seeing an effective pom.

For example, if you use IntelliJ, you can view the effective pom by right-clicking pom.xml> Maven> Show Effective POM .

... or from the command line by issuing mvn help:effective-pom

+18
source

You can look at http://mvnrepository.com/ :

http://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-tomcat/1.2.5.RELEASE

Below you have the Compile Dependencies section, and you can see that it uses Tomcat 8.0.23 .

+4
source

or For Gradle, display the dependency tree through the console using

 ./gradlew dependencies 

Example snippet from output:

 ... | +--- org.springframework.boot:spring-boot-starter-tomcat:2.1.0.RELEASE | | +--- javax.annotation:javax.annotation-api:1.3.2 | | +--- org.apache.tomcat.embed:tomcat-embed-core:9.0.12 | | +--- org.apache.tomcat.embed:tomcat-embed-el:9.0.12 | | \--- org.apache.tomcat.embed:tomcat-embed-websocket:9.0.12 | | \--- org.apache.tomcat.embed:tomcat-embed-core:9.0.12 ... 

In my example above, this is version 9.0.12

+1
source

For a more general comparison between the Spring Boot version and the Tomcat version, you can check this link: https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-tomcat

0
source

For those using PCF, i.e. cloudfoundry

I usually keep the bootloader dependency on Tomcat as indicated. This means that my local version of Tomcat may be slightly different.

Java Package Includes Tomcat Version

https://github.com/cloudfoundry/java-buildpack/releases

e.g. java buildpack 4.19.1 comes with Openjdk 1.8.0_212 and tomcat 9.0.19

0
source

Source: https://habr.com/ru/post/1241798/


All Articles