Purpose of cxf-rt-transports-http-jetty

空扰寡人 提交于 2021-01-27 04:52:31

问题


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>

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

Thanks,


回答1:


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.

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.

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



来源:https://stackoverflow.com/questions/39342353/purpose-of-cxf-rt-transports-http-jetty

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!