User[] users= restTemplate.getForObject(url, User[].class);
使用数组接收
restTemplate 接收list数据
原文:https://www.cnblogs.com/pxblog/p/15166515.html