feign-jackson1

This module adds support for encoding and decoding JSON via Jackson1.

Лицензия

Лицензия

Категории

Категории

Feign Сеть HTTP Clients Jackson Данные JSON ORM
Группа

Группа

com.marvinformatics.feign
Идентификатор

Идентификатор

feign-jackson1
Последняя версия

Последняя версия

0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

feign-jackson1
This module adds support for encoding and decoding JSON via Jackson1.
Ссылка на сайт

Ссылка на сайт

https://github.com/velo/feign-jackson1/
Система контроля версий

Система контроля версий

https://github.com/velo/feign-jackson1/

Скачать feign-jackson1

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.marvinformatics.feign/feign-jackson1/ -->
<dependency>
    <groupId>com.marvinformatics.feign</groupId>
    <artifactId>feign-jackson1</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.marvinformatics.feign/feign-jackson1/
implementation 'com.marvinformatics.feign:feign-jackson1:0.1'
// https://jarcasting.com/artifacts/com.marvinformatics.feign/feign-jackson1/
implementation ("com.marvinformatics.feign:feign-jackson1:0.1")
'com.marvinformatics.feign:feign-jackson1:jar:0.1'
<dependency org="com.marvinformatics.feign" name="feign-jackson1" rev="0.1">
  <artifact name="feign-jackson1" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.marvinformatics.feign', module='feign-jackson1', version='0.1')
)
libraryDependencies += "com.marvinformatics.feign" % "feign-jackson1" % "0.1"
[com.marvinformatics.feign/feign-jackson1 "0.1"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
com.netflix.feign : feign-core jar 8.16.2
org.codehaus.jackson : jackson-core-asl jar 1.9.9
org.codehaus.jackson : jackson-mapper-asl jar 1.9.9

test (5)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
com.squareup.okhttp : mockwebserver jar 2.7.5
com.squareup.okhttp : okhttp jar 2.7.5
com.squareup.okio : okio jar 1.6.0
org.assertj : assertj-core jar 1.7.1

Модули Проекта

Данный проект не имеет модулей.

Jackson1 Codec

Build Status Coverage Status Maven Central Issues Forks Stars

This module adds support for encoding and decoding JSON via Jackson1.

This is pretty much a copy of https://github.com/Netflix/feign/tree/master/jackson, but different Jackson version

Add JacksonEncoder and/or JacksonDecoder to your Feign.Builder like so:

GitHub github = Feign.builder()
                     .encoder(new JacksonEncoder())
                     .decoder(new JacksonDecoder())
                     .target(GitHub.class, "https://api.github.com");

If you want to customize the ObjectMapper that is used, provide it to the JacksonEncoder and JacksonDecoder:

ObjectMapper mapper = new ObjectMapper()
        .setSerializationInclusion(JsonInclude.Include.NON_NULL)
        .configure(SerializationFeature.INDENT_OUTPUT, true)
        .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

GitHub github = Feign.builder()
                     .encoder(new JacksonEncoder(mapper))
                     .decoder(new JacksonDecoder(mapper))
                     .target(GitHub.class, "https://api.github.com");

Версии библиотеки

Версия
0.1