2018-4-6
OK, I have to admit, because Axis2 did not walk, so changed the use of Jersey, because the previous time used to feel very easy to use.
Specific jersey is what, at present completely do not understand, the next 1 days time to try.
--it's not going to be.
I. Summary of resource addresses required below
- apache Maven
- apache Web site http://maven.apache.org/
- maven:http://maven.apache.org/download.cgi
- jersey
- jersey (Jax-rs 2.1/ Jersey 2.26+) Download: https://jersey.github.io/download.html
- Jerse Y Jax-rs 2.1 RI Bundle Bundle contains the JAX-RS 2.1 API jar, all the core Jersey module jars as well as all the required 3rd-party dependencies.
- Jersey 2.26 Examples Bundle provides convenient access to the Jersey 2 Examples for off -line browsing.
- jersey 2.26 API documentation online doc:https://jersey.github.io/apidocs/ latest/jersey/index.html
second, what is Jersey? Find out
Original address: Http://dyygusi.iteye.com/blog/2148029?utm_source=tuicool
Axis2 to the SOAP protocol, I spent days researching the implementation of rest WS with Axis2 ... Cold Wind
In addition, the jersey1.x version is a separate jar package provided by Sun, and in the 2.X version, Jersey has been placed under GlassFish. So...... The open source?? The project can use Jersey is another mystery ... But anyway, I just want to take a local service side test, should not affect.
From the degree of the Mother Encyclopedia:
The Jersey restful framework is an open source restful framework that implements the Jax-rs (JSR 311 & JSR 339) specification.
It extends the Jax-rs reference implementation and provides additional features and tools to further simplify RESTful service and client development.
Although relatively young, it is already a product-level RESTful service and client framework. similar to Struts , it can also be integrated with the hibernate,spring framework .
Because struts2+hibernate+spring integration in the market share is too high, so few people to pay attention to Jersey.
So the introduction of Jersey on the internet is very few. But it really is a very good framework. For a request-only service, you may even need to give a URI to complete the operation for the Get,delete request.
- so ... Am I supposed to learn Struts2?
Jersey Series Articles:
- Jersey Framework One: Jersey RESTful WebService Framework Introduction
- Jersey Framework II: Jersey support for JSON
- Jersey Framework III: Jersey support for HTTPS
third, first find a suitable for beginners Jersey Tutorial
Original address: Jersey Frame first Experience
Version 1.7 of Jersey
After seeing less than 5 lines, I saw this remark:
This article is mainly Jersey experience, you will not do any coding in the case, experience the jersey frame of the charm! This article also assumes that you have a MAVEN plugin installed in Eclipse!
OK, go and learn Maven...
Four, first find a suitable for beginners Maven Tutorial
Eclipse + Jersey released restful WebService (i) Learn about Jersey