2

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

4

3 回答 3

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 查看 OverView--> Features。

于 2011-01-05T20:19:03.843 回答
1

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

于 2011-03-02T21:03:29.847 回答
0

官方文档另有说明:

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

于 2011-01-05T20:19:06.280 回答