我想在jdk 1.5上运行Resteasy但它需要1.6而不是。 see this:在“依赖”类别中查看jdk版本。有没有办法用jdk 5运行/编译源代码?请帮忙。
答案 0 :(得分:1)
是的你可以 对于在JDK 5或更高版本上运行的任何app-server / 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 - >特征
答案 1 :(得分:1)
从网站获得的jar是使用Java 1.6编译的(至少是2.1.0.GA版本)。这里的关键术语是“可移植的”,我解释为你必须从头开始重新编译项目以获得1.5版本。
答案 2 :(得分:0)
可移植到在JDK 5或更高版本上运行的任何app-server / Tomcat