У меня есть зависимость от jakson-annotation в версии 2.10.3. И все работало нормально, но внезапно у меня возникает cla sh между зависимостью и сторонней библиотекой Weblogi c, когда я пытаюсь развернуть приложение. Версия на Weblogi c, очевидно, 2.7.9.
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.fasterxml.jackson.datatype.jsr310.deser.JSR310DateTimeDeserializerBase.createContextual(JSR310DateTimeDeserializerBase.java:104)
The following method did not exist:
com.fasterxml.jackson.annotation.JsonFormat$Value.hasLenient()Z
The method's class, com.fasterxml.jackson.annotation.JsonFormat$Value, is available from the following locations:
jar:file:/C:/.../Oracle/Middleware/Oracle_Home/oracle_common/modules/thirdparty/jackson-annotations-2.7.9.jar!/com/fasterxml/jackson/annotation/JsonFormat$Value.class
zip:C:/.../Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/my_app_war/jixshv/war/WEB-INF/lib/jackson-annotations-2.10.3.jar!/com/fasterxml/jackson/annotation/JsonFormat$Value.class
It was loaded from the following location:
file:/C:/.../Oracle/Middleware/Oracle_Home/oracle_common/modules/thirdparty/jackson-annotations-2.7.9.jar
Хорошо, это вызвано тем, что весенняя загрузка 2.2.0+ использует 2.10.0 с этим методом.