我正在将我的服务从SpringBoot堆栈迁移到Quarkus。为什么以下代码在Quarkus中不起作用?那是个bug吗?
public interface GenericDictionaryRepository extends
JpaRepository<Dictionary, UUID> {
@Query("select distinct(d.type) from Dictionary d order by d.type")
List<String> findAllTypes();
}
错误消息
io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.spring.data.deployment.SpringDataJPAProcessor#build threw an exception: java.lang.IllegalStateException: java.lang.String was not part of the Quarkus index
Gradle的我的版本属性:
quarkusPluginVersion=1.3.1.Final
quarkusPlatformArtifactId=quarkus-universe-bom
quarkusPlatformGroupId=io.quarkus
quarkusPlatformVersion=1.3.1.Final
发布于 2020-06-01 23:44:55
我也有同样的问题,这是一个方法命名问题。我不得不在quarkus代码中放置一个断点,以找出拼写错误的方法。
在我的例子中,方法是findAllOrderByNameAsc
,当我使用findAllByOrderByNameAsc
时,它是有效的。
要调试应用程序,您必须执行命令./mvnw quarkus:dev -Ddebug -Dsuspend=true
并从您的集成开发环境连接到远程。
希望能有所帮助。
https://stackoverflow.com/questions/61067524
复制相似问题