Jersey 如何在 Tomcat 服务器上运行?
How Jersey works on Tomcat Server?
根据 http://tomee.apache.org/comparison.html 上的 Apache tomcat 描述,tomcat 不支持 JAX-RS 网络服务。
但是作为 JAX-RS 参考实现的 Jersey 在 tomcat 中运行良好。
我想了解 Jersey jar 如何让 JAX RS 在 tomcat 上工作?
还是 tomcat 实际上支持 JAX-RS 应用程序?
我猜 "doesn't support" 有点模棱两可。你解释为 "doesn't support at all",但实际上它意味着 "doesn't have a JAX-RS implementation out the box".
所有 JAX-RS 实现 运行 作为 servlet(或者某些可以 运行 作为 servlet 过滤器),因此所有实现都需要 运行 的 servlet 容器,香草 Tomcat 是什么。
根据 http://tomee.apache.org/comparison.html 上的 Apache tomcat 描述,tomcat 不支持 JAX-RS 网络服务。
但是作为 JAX-RS 参考实现的 Jersey 在 tomcat 中运行良好。
我想了解 Jersey jar 如何让 JAX RS 在 tomcat 上工作? 还是 tomcat 实际上支持 JAX-RS 应用程序?
"doesn't support" 有点模棱两可。你解释为 "doesn't support at all",但实际上它意味着 "doesn't have a JAX-RS implementation out the box".
所有 JAX-RS 实现 运行 作为 servlet(或者某些可以 运行 作为 servlet 过滤器),因此所有实现都需要 运行 的 servlet 容器,香草 Tomcat 是什么。