cxf-rt-transports-http-jetty的目的 [英] Purpose of cxf-rt-transports-http-jetty

查看:418
本文介绍了cxf-rt-transports-http-jetty的目的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在开发cxf Web服务时理解以下依赖的目的.

I want to understand the purpose of below dependency while developing cxf webservices.

<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-transports-http-jetty</artifactId>
    <version>3.1.7</version>
</dependency>

不添加此依赖项CXF简单前端不会创建服务.

Without adding this dependency CXF simple frontend doesn't create the service.

谢谢

推荐答案

Jetty为您的CXF服务提供了Web服务器和javax.servlet容器. 在上面添加依赖项就像将容器嵌入到您的应用程序中.

Jetty provides a Web server and javax.servlet container for your CXF services. Adding the dependency above is like embedding the container into your application.

或者,您可以使用 test 范围添加此依赖性,以便对Web服务进行单元测试并将应用程序部署到外部容器中.

Alternatively, you can add this dependency using test scope in order to unit test your web services and deploy your application into an external container.

请参考 http://cxf.apache.org/docs/transports.html有关可用CXF传输的更多信息.

Please refer to http://cxf.apache.org/docs/transports.html for more information about available CXF transports.

这篇关于cxf-rt-transports-http-jetty的目的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆