在程序运行时报以下错误
org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Infinite recursion (StackOverflowError); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError)
jackson对象序列化或反序列号无限递归造成的
出现这个问题,注意多对多 等 实体类中相应属性是否加入@JsonIgnore