【发布时间】:2020-07-11 16:52:43
【问题描述】:
我有一个带有 uuid 列的实体类 Person。我有一个外部休息服务(ExternalRestService),我可以通过提到的 uuid 列获取信息。 我想创建像
这样的投影interface PersonWithExternalDataProjection {
val uuid: UUID,
val externalData = externalRestService.getDataBy(uuid)
}
试过@Value 但似乎不起作用。
【问题讨论】:
标签: spring-data-rest spring-projections