Новая аннотация @JsonIgnoreProperties разрешает многие проблемы с другими параметрами.
@Entity
public class Material{
...
@JsonIgnoreProperties("costMaterials")
private List costSuppliers = new ArrayList<>();
...
}
@Entity
public class Supplier{
...
@JsonIgnoreProperties("costSuppliers")
private List costMaterials = new ArrayList<>();
....
}
Проверьте здесь. Он работает так же, как в документации: http://springquay.blogspot.com/2016/01/new-approach-to-solve-json-recursive.html