gpt4 book ai didi

java - NoClassDefFoundError : QuerydslUtils

转载 作者:行者123 更新时间:2023-11-30 06:44:29 26 4
gpt4 key购买 nike

获取 NoClassDefFoundError: org/springframework/data/querydsl/QuerydslUtils 错误。我正在使用 1.13.6.RELEASE 版本的 spring-data-commons。

堆栈轨迹如下:

Caused by: java.lang.NoClassDefFoundError: org/springframework/data/querydsl/QuerydslUtils
at org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory.isQueryDslRepository(DynamoDBRepositoryFactory.java:142) ~[spring-data-dynamodb-5.0.2.jar:5.0.2]
at org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactory.getRepositoryBaseClass(DynamoDBRepositoryFactory.java:135) ~[spring-data-dynamodb-5.0.2.jar:5.0.2]
at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepositoryInformation(RepositoryFactorySupport.java:253) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:195) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:277) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:263) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
... 29 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.data.querydsl.QuerydslUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_144]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_144]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) ~[na:1.8.0_144]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_144]
... 37 common frames omitted

最佳答案

正如@himanshuraipur 所述,存在版本冲突:

spring-data-dynamodb 5.0.2 基于 spring-data 2.0/Spring 5。

但是 spring-boot 1.5.6 自带 spring-data 1

因此,您唯一的机会是更新您的 spring-boot 依赖项或返回到 spring-data-dynamodb 4.54.6。在项目页面上有一个完整的 compatibilty matrix

注意:我是spring-data-dynamodb项目的维护者

关于java - NoClassDefFoundError : QuerydslUtils,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50390485/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com