Krishna
Krishna

Reputation: 7294

How Tomcat embed work in Spring Boot

I am working with Spring Boot for building and deploying my Spring applications. I have a question on how Spring boot embeds the servers into the package. I have seen there are JAR files in the name of tomcat-embed-core, i.e. tomcat-embed-el. Is this the complete tomcat solution or does it internally use the installed tomcat in the local system?

If we want to use application servers like WAS 8.5, is there any solution provided by Spring Boot?

Upvotes: 6

Views: 10707

Answers (1)

raduy
raduy

Reputation: 540

Spring Boot has a complete Tomcat inside. It builds a so-called fat-jar with everything needed inside.

All you need to do to run such an application is:

java -jar spring-boot-app.jar

You don't need Tomcat installed in your system.

If you want to use external application server try starting with this: External Tomcat with Spring Boot

BTW: Spring Boot also supports other application servers like Jetty.

Upvotes: 11

Related Questions