为什么Spring-boot-Starter-Jetty依赖于Tomcat-Embed-El?

发布于 2025-02-11 01:55:18 字数 364 浏览 0 评论 0原文

我们正在使用带码头的弹簧靴(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

探春 2025-02-18 01:55:18

在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文