在 Tomcat 中将 RESTful 服务与 JAX-RS/CXF 结合使用
我对在 Tomcat 环境中使用 Apache 的 JAX-RS 实现 (CXF) 感兴趣。 文档对于使用 JAX-RS 开发 RESTful 服务非常清晰和直接/CXF。但是,我不确定如何在 Tomcat 环境的上下文中开发 JAX-RS 服务。
有谁知道为 Tomcat 开发 JAX-RS/CXF 服务的好教程吗?
I'm interested in using Apache's JAX-RS implementation (CXF) in a Tomcat environment. The documentation is pretty clear and straight forward about developing a RESTful service with JAX-RS/CXF. However, I'm not sure how to develop a JAX-RS service within the context of a Tomcat environment.
Does anyone know of a good tutorial on developing JAX-RS/CXF services for Tomcat?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不完全是教程,但是在 Tomcat 中开发 JAX-RS 并没有什么特别的(毕竟它是基于 servlet 规范,tomcat 支持):
http://cxf.apache.org/docs/jaxrs-services-configuration.html
(特别是在“在容器中配置 JAX-RS 服务”标题下没有弹簧)
Not exactly a tutorial, but there is nothing special in developing JAX-RS in Tomcat (after all it is based on the servlet specification, which tomcat supports):
http://cxf.apache.org/docs/jaxrs-services-configuration.html
(in particular under the heading Configuring JAX-RS services in container without Spring)
有一个教程如何在 tomcat 中使用 jax-rs/cxf 开发resful服务:
http://javajeedevelopment.blogspot.fr/2014/07 /restful-services-using-apache-cxf.html
There is a tutorial how to developing a resful services with jax-rs/cxf in tomcat:
http://javajeedevelopment.blogspot.fr/2014/07/restful-services-using-apache-cxf.html