java.lang.NoClassDefFoundError:com/fasterxml/Jackson/module/blackbird/ser/ToBooleanFunction

rkue9o1l  于 12个月前  发布在  Java
关注(0)|答案(1)|浏览(137)

我在尝试从Java 11升级到17时遇到了这个错误。
我确认了ToBooleanFunction存在于2.15.2版本中,以及我尝试过的其他一些版本中。我还确认了该库位于类路径中。
这是我的pom文件的相关部分。感谢任何输入。

<dependency>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-core</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-annotations</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-databind</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.module</groupId>
               <artifactId>jackson-module-parameter-names</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.module</groupId>
               <artifactId>jackson-module-blackbird</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.datatype</groupId>
               <artifactId>jackson-datatype-guava</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.datatype</groupId>
               <artifactId>jackson-datatype-joda</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.dataformat</groupId>
               <artifactId>jackson-dataformat-yaml</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.module</groupId>
               <artifactId>jackson-module-jaxb-annotations</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.datatype</groupId>
               <artifactId>jackson-datatype-jsr310</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.datatype</groupId>
               <artifactId>jackson-datatype-jdk8</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.jaxrs</groupId>
               <artifactId>jackson-jaxrs-base</artifactId>
               <version>2.15.2</version>
           </dependency>
           <dependency>
               <groupId>com.fasterxml.jackson.jaxrs</groupId>
               <artifactId>jackson-jaxrs-json-provider</artifactId>
               <version>2.15.2</version>
           </dependency>

字符串

voj3qocg

voj3qocg1#

我遇到过这样的问题。你可以试试Jackson2. 13. 5版本。在我的情况下,它运行得很好。

相关问题