如何在工作台中正确使用@InverseRelationShadowVariable

问题描述 投票:0回答:1

使用@InverseRelationShadowVariable注释会导致java.lang.StackOverflow异常。我的猜测是,计划实体与计划变量之间的关系现在是循环的,并在数据绑定期间导致无休止的引用。

使用注释时是否有避免这种情况的特定方法?

java optaplanner
1个回答
0
投票

通过在反变量上添加@JsonIgnore注释来解决。

© www.soinside.com 2019 - 2024. All rights reserved.