【问题标题】:Can we run resteasy on jdk 1.5我们可以在 jdk 1.5 上运行 resteasy
【发布时间】:2011-01-05 19:40:18
【问题描述】:

我想在 jdk 1.5 上运行 Resteasy,但它需要 1.6。 see this:查看“取决于”类别中的 jdk 版本。有没有办法用 jdk 5 运行/编译源代码?请帮忙。

【问题讨论】:

    标签: java resteasy jdk1.5


    【解决方案1】:

    是的,你可以 它可移植到在 JDK 5 或更高版本上运行的任何应用服务器/Tomcat。

    特点

    * Fully certified JAX-RS implementation
    * Portable to any app-server/Tomcat that runs on JDK 5 or higher
    * Embeddedable server implementation for junit testing
    * Client framework that leverages JAX-RS annotations so that you can write HTTP clients easily (JAX-RS only defines server bindings)
    * Client "Browser" cache. Supports HTTP 1.1 caching semantics including cache revalidation
    * Server in-memory cache. Local response cache. Automatically handles ETag generation and cache revalidation
    * Rich set of providers for: XML, JSON, YAML, Fastinfoset, Multipart, XOP, Atom, etc.
    * JAXB marshalling into XML, JSON, Jackson, Fastinfoset, and Atom as well as wrappers for maps, arrays, lists, and sets of JAXB Objects.
    * GZIP content-encoding. Automatic GZIP compression/decompression suppport in client and server frameworks
    * Asynchronous HTTP (Comet) abstractions for JBoss Web, Tomcat 6, and Servlet 3.0
    * Asynchronous Job Service.
    * Rich interceptor model.
    * EJB, Seam, Guice, Spring, and Spring MVC integration
    

    参考:http://jboss.org/resteasy 查看概览--> 功能。

    【讨论】:

    • 好吧,这不再是真的了。现在在他们的网站上你可以看到它 --> 可移植到在 JDK 6 或更高版本上运行的任何应用服务器/Tomcat
    【解决方案2】:

    您从该站点获得的 jar 是用 Java 1.6(至少是 2.1.0.GA 版本)编译的。这里的关键术语是“便携”,我将其解释为您必须从头开始重新编译项目才能获得 1.5 版本。

    【讨论】:

    • 所以你的意思是我需要得到所有Resteasy对应的源代码,然后重新编译?如果是,我从哪里获得代码?
    【解决方案3】:

    official documentation 另有说明:

    可移植到在 JDK 5 或更高版本上运行的任何应用服务器/Tomcat

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-19
      • 1970-01-01
      • 2012-06-07
      • 1970-01-01
      • 1970-01-01
      • 2011-02-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多