杰克逊databind 2.9导致jesque client.enqueue()错误`java.lang.NoSuchMethodError:com.fasterxml.jackson.databind.DeserializationConfig.with`

时间:2018-07-18 10:00:38

标签: jesque

我在下面的示例中使用jesque

// Configuration
final Config config = new ConfigBuilder().build();

// Add a job to the queue
final Job job = new Job("TestAction", new Object[] { 1, 2.3, true, "test", Arrays.asList("inner", 4.5) });
final Client client = new ClientImpl(config);
client.enqueue("foo", job);
client.end();

我遇到以下错误:

java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.DeserializationConfig.with(Ljava/text/DateFormat;)Lcom/fasterxml/jackson/databind/DeserializationConfig;

    at net.greghaines.jesque.json.ObjectMapperFactory.<clinit>(ObjectMapperFactory.java:37)
    at net.greghaines.jesque.client.AbstractClient.enqueue(AbstractClient.java:77)
    at dcasino.DCasinoControllerIT.verifyRedis(DCasinoControllerIT.java:71)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

它在issue 137中报告。我正在使用Spring Boot 2.0.3.RELEASE。我试图降级,杰克逊也。但是,没有一个有效。

0 个答案:

没有答案