首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > guice ESDL for Apache CXF(的JAX - RS)

guice ESDL for Apache CXF(的JAX - RS)

  • 资源大小:60.48 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: JAXRS

资 源 简 介

# Migrated to GitHub # **Guice-Cxf** has migrated to a new location at [GitHub](https://github.com/jakub-bochenski/guice-cxf/). Please use it for all new issue reports, etc. --- A simple EDSL (Embedded Domain-Specific Language) for configuring the Apache CXF implementation of JSR-311. Provides a configured JAXRSServerFactoryBean instance that you can use to start a Server in any particular way you need. Resources and providers will be created with Guice, then they will have the normal CXF/JAX-RS injections performed on them. Example: ``` protected void configure() { serve().atAddress("/rest"); publish(LibraryResource.class); readAndWriteBody(JAXBElementProvider.class); readAndWriteBody(JSONProvider.class); mapExceptions(ApplicationExceptionMapper.class); } ``` guice-cxf supports injecting Jax-Rs resource with dependencies bound in Guice. ``` @Path("foo"); public class LibraryResource { @Inject private BookService service; @GET public Boo
VIP VIP
  • Mason 32分钟前 成为了本站会员

  • 1小时前 成为了本站会员

  • Half_Punch 1天前 成为了本站会员

  • liqing71718 1天前 成为了本站会员

  • 伟国 1天前 成为了本站会员

  • songy 1天前 成为了本站会员

  • 纯色幽默 1天前 成为了本站会员

  • odd? 1天前 成为了本站会员

  • 52JOY... 1天前 成为了本站会员

  • Sirius 2天前 成为了本站会员

0.166301s