springboot embedded tomcat and tomcat-embed-jasper
2022-09-01 21:05:29
我有时会在pom中看到这些声明.xml...
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
....
正如你所看到的,spring-boot-starter-web被声明以及tomcat-embed-jasper。
是不是弹簧-启动-启动器-web已经有一个嵌入式雄猫了?为什么一些开发人员仍然声明tomcat-embed-jasper以及boot-starter-web?还是有什么原因?