class org.springframework.data.repository.query.DefaultParameters不能强制转换为class org.springframework.data.jpa.repository.query.JpaParameters

oalqel3c  于 5个月前  发布在  Spring
关注(0)|答案(1)|浏览(62)

Sping Boot 3.2.0的时候出现了一个错误,终端显示“class org.springframework.data.repository.query.DefaultParameters cannot be cast to class org.springframework.data.jpa.repository.query.JpaParameters”。

rmbxnbpk

rmbxnbpk1#

我通过添加spring-data-commons依赖修复了它。我只是想记下这一点来帮助有同样问题的人。我不知道它为什么有效;我希望有人能帮助我找到答案。

<dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-commons</artifactId>
            <version>3.2.1</version>
        </dependency>

字符串

相关问题