有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java组织。springframework。果心转换ConverterNotFoundException:未找到能够从类型转换的转换器

我试图通过使用JPA存储库查询和下面的代码来获取值列表

List<Pair<String,byte[]>> pairs = repository.findList();

@Query(value= "select v.agentid, v.mobilenumber from dispatcher v")
public List<Pair<String,byte[]>> findList();

但我的错误率越来越低

org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap] to type [org.javatuples.Pair<?, ?>]

我的逻辑怎么了

我正在使用下面的罐子

compile group: 'org.javatuples', name: 'javatuples', version: '1.2'

共 (0) 个答案