先导入
import com.google.common.collect.Lists;
然后使用
@RequestMapping("/findAll") public Iterable<Person> findAll(){ List<Person> people = Lists.newArrayList(demoService.findAll()); return demoService.findAll(); }