Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know which tomcat version embedded in spring boot

I used spring boot in project. It has inbuild tomcat server. I find out a jar spring-boot-starter-tomcat-1.2.5.RELEASE.jar. I required to do certain tomcat related configuration on linux server.

How can I get to know which tomcat version used in this?

like image 473
bNd Avatar asked Jan 29 '16 09:01

bNd


People also ask

Which version of Tomcat is embedded in spring boot?

Tomcat 7 & 8.0 work with Spring Boot, but the default is to use Tomcat 8.5. If you cannot use Tomcat 8.5 (for example, because you are using Java 1.6) you will need to change your classpath to reference a different version.

Is Tomcat server embedded in spring boot?

Spring Boot is a popular Java-based framework to develop microservices. By default, the Spring Tool Suite (STS) IDE -- which is used to build a Spring Boot application -- will automatically create an embedded Tomcat server with the microservices developed each time a build or deployment occurs.

How do I change the embedded Tomcat in spring boot?

Another way to change the port of embedded tomcat in the Spring Boot application is by specifying the server. port property in the resource file. For example, if you want your Spring boot application to listen on port 8080, then you can specify server. port=8080 on the application.


2 Answers

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

For example, if you are using IntelliJ you can view effective pom by right clicking pom.xml > Maven > Show effective POM.

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

like image 132
Sanghyun Lee Avatar answered Oct 01 '22 16:10

Sanghyun Lee


Via http://search.maven.org/, in https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-dependencies/1.2.5.RELEASE/spring-boot-dependencies-1.2.5.RELEASE.pom:

<tomcat.version>8.0.23</tomcat.version> 
like image 26
Joe Avatar answered Oct 01 '22 15:10

Joe