![](/img/trans.png)
[英]Order and OrderLine Relationship mapping in Hibernate. Where to put @OnetoMany and/or @ManytoOne
[英]SpringBoot Hibernate. Unable to GET findAll and findById in Postman, Swager, api link for OneToMany, ManyToOne relationship
您的菜餚和類別是相關實體。
嘗試在您的 Dish class 中為 Category 字段添加 @JsonIgnore注釋,反之亦然。
此外,始終使用 DTO 而不是在 Rest-call 中返回實際的 DB object。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.