gpt4 book ai didi

spring-boot - 升级到 Spring Boot 1.4.0 后未找到 com.querydsl.core.types.Predicate 符号

转载 作者:行者123 更新时间:2023-12-01 01:58:25 28 4
gpt4 key购买 nike

我刚刚将 spring boot 版本更新为 1.4.0。之后,我收到类似的错误

Error:(109, 45) java: no suitable method found for findAll(com.mysema.query.types.Predicate,org.springframework.data.domain.Pageable)
method org.springframework.data.querydsl.QueryDslPredicateExecutor.findAll(com.querydsl.core.types.Predicate,org.springframework.data.domain.Sort) is not applicable
(argument mismatch; com.mysema.query.types.Predicate cannot be converted to com.querydsl.core.types.Predicate)
method org.springframework.data.querydsl.QueryDslPredicateExecutor.findAll(com.querydsl.core.types.Predicate,com.querydsl.core.types.OrderSpecifier<?>...) is not applicable
(argument mismatch; com.mysema.query.types.Predicate cannot be converted to com.querydsl.core.types.Predicate)
method org.springframework.data.querydsl.QueryDslPredicateExecutor.findAll(com.querydsl.core.types.OrderSpecifier<?>...) is not applicable
(varargs mismatch; com.mysema.query.types.Predicate cannot be converted to com.querydsl.core.types.OrderSpecifier<?>)
method org.springframework.data.querydsl.QueryDslPredicateExecutor.findAll(com.querydsl.core.types.Predicate,org.springframework.data.domain.Pageable) is not applicable
(argument mismatch; com.mysema.query.types.Predicate cannot be converted to com.querydsl.core.types.Predicate)

在升级之前,查询工作正常。

最佳答案

很可能(因为提供的信息非常有限)您使用的是错误版本的 QueryDSL。 QueryDSL Predicate 类现在(从 QueryDSL 4 开始)在包 com.querydsl.core.types 中.
尝试从 pom 中删除 queryDSL 依赖项的版本(如果使用 maven)并在依赖项管理部分使用 Spring Boot BOM 依赖项。见 here

关于spring-boot - 升级到 Spring Boot 1.4.0 后未找到 com.querydsl.core.types.Predicate 符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38661586/

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