Micronaut无法转换CompletableFuture <set <pojo >>吗?

时间:2019-02-21 11:28:27

标签: json jackson completable-future micronaut

我用以下签名创建了一个点:

@Status(HttpStatus.ACCEPTED)
public CompletableFuture<String> processTagsInBatch(@Body CompletableFuture<Set<TagBatchRequest>> tagsRequests) {
return tagsRequests.thenApply(t -> doSomething(t));

但是我得到以下错误: class java.util.LinkedHashMap cannot be cast to class com.xyz.TagBatchRequest (java.util.LinkedHashMap is in module java.base of loader 'bootstrap';

0 个答案:

没有答案