Jersey2.41包依赖

 

服务端和客户端基本依赖

<dependency>

    <groupId>org.glassfish.jersey.containers</groupId>

    <!-- if your container implements Servlet API older than 3.0, use "jersey-container-servlet-core" -->

    <artifactId>jersey-container-servlet</artifactId>

    <version>2.4.1</version>

</dependency>

<!-- Required only when you are using JAX-RS Client -->

<dependency>

    <groupId>org.glassfish.jersey.core</groupId>

    <artifactId>jersey-client</artifactId>

    <version>2.4.1</version>

</dependency>

Json自动转换依赖

<dependency>

    <groupId>org.glassfish.jersey.media</groupId>

    <artifactId>jersey-media-moxy</artifactId>

    <version>2.4.1</version>

</dependency>

<dependency>

    <groupId>org.glassfish.jersey.media</groupId>

    <artifactId>jersey-media-json-processing</artifactId>

    <version>2.4.1</version>

</dependency>

<dependency>

    <groupId>org.glassfish.jersey.media</groupId>

    <artifactId>jersey-media-json-jackson</artifactId>

    <version>2.4.1</version>

</dependency>

<dependency>

    <groupId>org.glassfish.jersey.media</groupId>

    <artifactId>jersey-media-json-jettison</artifactId>

    <version>2.4.1</version>

</dependency>

注册配置:register(org.glassfish.jersey.jackson.JacksonFeature.class);

多态表单依赖

<dependency>

    <groupId>org.glassfish.jersey.media</groupId>

    <artifactId>jersey-media-multipart</artifactId>

    <version>2.4.1</version>

</dependency>

注册配置:register(org.glassfish.jersey.media.multipart.MultiPartFeature.class);

MVC依赖

<dependency>

    <groupId>org.glassfish.jersey.ext</groupId>

    <artifactId>jersey-mvc</artifactId>

    <version>2.4.1</version>

</dependency>

<dependency>

    <groupId>org.glassfish.jersey.ext</groupId>

    <artifactId>jersey-mvc-jsp</artifactId>

    <version>2.4.1</version>

</dependency>

<dependency>

    <groupId>org.glassfish.jersey.ext</groupId>

    <artifactId>jersey-mvc-freemarker</artifactId>

    <version>2.4.1</version>

</dependency>

注册配置:register(org.glassfish.jersey.server.mvc.jsp.JspMvcFeature.class);

服务器推送事件(SSE)依赖

<dependency>

    <groupId>org.glassfish.jersey.media</groupId>

    <artifactId>jersey-media-sse</artifactId> <version>2.4</version>

</dependency>

注册配置:register(org.glassfish.jersey.media.sse.SseFeature.class);

你可能感兴趣的:(jersey,maven依赖包)