Home > Back-end >  Why SpringBoot don't need to configure tomcat separately?
Why SpringBoot don't need to configure tomcat separately?

Time:09-26

Start it directly bring the boot file can run web, why?

CodePudding user response:

SpringBoot enabled by default embedded tomcat container, listen on port 8080, so you don't have separate configuration,

CodePudding user response:

Because: Tomcat SpringBoot has a built-in Web server, so you don't have separate configuration

CodePudding user response:

https://blog.csdn.net/weixin_43570367/article/details/104213404

CodePudding user response:

 & lt; Dependency> 
org.springframework.boot
Spring - the boot - starter - web


org.springframework.boot
Spring - the boot - starter - tomcat





Embedded tomcat, you need to remove the embedded tomcat
  • Related