springspring-boottomcatembedded-tomcat-7

Spring boot and Tomcat : Is it better to use embeded Tomcat or external Tomcat installation.


I was wondering if some experienced spring boot users can tell us how to choose between embedded Tomcat and external Tomcat installation. Thanks in advance.


Solution

  • Embedded Tomcat helps you to define Standalone application. Earlier we have to deploy war to Tomcat Server which itself a tedious task. From the embedded tomcat you can run application as service without worrying about the deployment thing. As now days microservices are being popular, spring boot is more popular because of its feature one of them is embedded servers like Tomcat,Jetty or Netty.