为什么Spring-boot-Starter-Jetty依赖于Tomcat-Embed-El?
我们正在使用带码头的弹簧靴(2.7.x)。我们的依赖扫描仪告诉我们,我们的依赖树中仍然有tomcat的依赖性。
当查看弹簧启动的POM 2.7.1时,我发现Spring-Boot-Starter-Jetty取决于Tomcat-Embed-el。 tomcat-embed-el包含javax.el和org.apache.el软件包中的类,所以我认为这是tomcat的/expression-language-parser实现吗?
有人知道为什么吗?我下载了同一版本的独立版,它没有这个tomcat库。
有关依赖关系,请参见此处。 .com/artifact/org.springframework.boot/spring-boot-starter-jetty/2.7.1
We are using Spring-Boot (2.7.x) with Jetty. Our dependency scanner told us, that we still have Tomcat dependencies in our dependency tree.
When looking at the POM for spring-boot-starter-jetty 2.7.1 I found out that spring-boot-starter-jetty depends on tomcat-embed-el.
The tomcat-embed-el contains classes from the javax.el and org.apache.el package, so I thinks this is an/the Expression-Language-Parser implementation for Tomcat?
Anybody knows why? I downloaded the same version of Standalone-Jetty and it doesn't have this tomcat library.
See here for the dependencies https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-jetty/2.7.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在Spring Boot 2.5中,已经做出了将EL实现统一到Apache One的决定(请参见这个问题)。
因此,现在所有容器都取决于
tomcat-embed-el
,因为这是Javax El的Apache实现(和常规API)。因此,码头(也是承诺)对tomcat罐子的依赖性很小。In Spring Boot 2.5 the decision has been made to unify the EL implementation to the Apache one (See this issue).
Hence all containers now depend on the
tomcat-embed-el
as that is the Apache implementation (and regular API) for the Javax EL. Hence Jetty (and Undertow as well) have this small dependency on a Tomcat jar.