【发布时间】:2011-01-05 19:40:18
【问题描述】:
我想在 jdk 1.5 上运行 Resteasy,但它需要 1.6。 see this:查看“取决于”类别中的 jdk 版本。有没有办法用 jdk 5 运行/编译源代码?请帮忙。
【问题讨论】:
我想在 jdk 1.5 上运行 Resteasy,但它需要 1.6。 see this:查看“取决于”类别中的 jdk 版本。有没有办法用 jdk 5 运行/编译源代码?请帮忙。
【问题讨论】:
是的,你可以 它可移植到在 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 查看概览--> 功能。
【讨论】:
您从该站点获得的 jar 是用 Java 1.6(至少是 2.1.0.GA 版本)编译的。这里的关键术语是“便携”,我将其解释为您必须从头开始重新编译项目才能获得 1.5 版本。
【讨论】:
official documentation 另有说明:
可移植到在 JDK 5 或更高版本上运行的任何应用服务器/Tomcat
【讨论】: