in the Book schema write @JsonIgnoreProperties("books") // Ignore le champ books dans author lors de la sérialisation
private Author author;
in the Author schema write @JsonIgnoreProperties("author") // Ignore le champ author dans book lors de la sérialisation
private Set books= new HashSet<>();