http://localhost:8080/traveller/scence.jsp#/scences?page=0
{
"_links" : {
"self" : {
"href" : "http://localhost:8080/traveller/scences{?page,size,sort}",
"templated" : true
},
"next" : {
"href" : "http://localhost:8080/traveller/scences?page=1&size=6{&sort}",
"templated" : true
},
"search" : {
"href" : "http://localhost:8080/traveller/scences/search"
}
},
"_embedded" : {
"scences" : [ {
"id" : 1,
"address" : "中国台湾",
"country" : 12,
"hearts" : 0,
"info" : "<p>Aliq felis. Proin non</div>",
"name" : "日月潭",
"regdate" : "2015-09-12T14:44:13.000+0000",
"images" : [ {
"info" : null,
"name" : "12.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
}, {
"info" : null,
"name" : "13.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
}, {
"info" : null,
"name" : "11.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
} ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/traveller/scences/1"
}
}
}, {
"id" : 2,
"address" : "中国陕西",
"country" : 1,
"hearts" : 0,
"info" : "顺治出家之谜",
"name" : "五台山",
"regdate" : "2015-09-10T14:44:20.000+0000",
"images" : [ {
"info" : null,
"name" : "22.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
}, {
"info" : null,
"name" : "21.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
}, {
"info" : null,
"name" : "23.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
} ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/traveller/scences/2"
}
}
}, {
"id" : 3,
"address" : "中国安徽",
"country" : 1,
"hearts" : 0,
"info" : "一生痴绝处,无梦到徽州",
"name" : "黄山",
"regdate" : "2015-09-09T14:44:26.000+0000",
"images" : [ {
"info" : null,
"name" : "31.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
}, {
"info" : null,
"name" : "33.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
}, {
"info" : null,
"name" : "32.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
} ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/traveller/scences/3"
}
}
}, {
"id" : 4,
"address" : "中国浙江",
"country" : 7,
"hearts" : 0,
"info" : "那杭州美景盖世无双,西湖岸奇花异草四季清香,那春游苏堤桃红柳绿 夏赏荷花映满了池塘,那秋观明月如同碧水,冬看瑞雪铺满了山岗",
"name" : "杭州西湖",
"regdate" : "2015-09-11T14:44:45.000+0000",
"images" : [ {
"info" : "",
"name" : "33.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
} ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/traveller/scences/4"
}
}
}, {
"id" : 5,
"address" : "中国浙江",
"country" : 7,
"hearts" : 0,
"info" : "那杭州美景盖世无双,西湖岸奇花异草四季清香,那春游苏堤桃红柳绿 夏赏荷花映满了池塘,那秋观明月如同碧水,冬看瑞雪铺满了山岗",
"name" : "嵩山",
"regdate" : "2015-09-11T14:44:45.000+0000",
"images" : [ {
"info" : "",
"name" : "33.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
} ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/traveller/scences/5"
}
}
}, {
"id" : 6,
"address" : "中国浙江",
"country" : 7,
"hearts" : 0,
"info" : "那杭州美景盖世无双,西湖岸奇花异草四季清香,那春游苏堤桃红柳绿 夏赏荷花映满了池塘,那秋观明月如同碧水,冬看瑞雪铺满了山岗",
"name" : "泰山",
"regdate" : "2015-09-11T14:44:45.000+0000",
"images" : [ {
"info" : "",
"name" : "33.jpg",
"poster" : 1,
"updatedate" : "2015-09-16T14:45:43.000+0000"
} ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/traveller/scences/6"
}
}
} ]
},
"page" : {
"size" : 6,
"totalElements" : 14,
"totalPages" : 3,
"number" : 0
}
}
原文:http://www.cnblogs.com/mingziday/p/4850544.html