public class BeanToMap { public static Map<String, Object> ConvertObjToMap(Object obj) { Map<String, Object> reMap = new HashMap<>(); if (obj == null) return null; List<Field> fields = new ArrayList<>(); List<Field> chi
spring jpa 实体互相引用返回restful数据循环引用报错的问题 Java实体里两个对象有关联关系,互相引用,比如,在一对多的关联关系里 Problem对象,引用了标签列表ProblemLabel ProblemLabel对象,引用了所属Problem 这样构成了互相引用,导致递归循环内存溢出异常: org.springframework.http.converter.HttpMessageNotWritableException: Could not write content: I
mysql 转换NULL数据方法<pre>SELECT info1,info2, IFNULL(info3,0) as info3 FROM `info1`;</pre><pre>IFNULL(expr1, expr2)</pre> 如果expr1不是NULL,IFNULL()返回expr1,否则返回expr2