error:attempted to return null from a method with a primitive return type (boolean) 原因是 你的数据库的一行所有属性中有部分属性的空值null,把所有属性都存了值后ok了