利用struts2-json-plugin
之前一直输出null.... 按网上的配也不行 后来不知道怎么突然可以了 赶紧记录一下
private List<Shop> moneyshops;
setter getter.
moneyshops=sService.getMoneyShopByLanmuByNum(lanmu, monshoptype);
<result type="json" >
<param name="root">
moneyshops</param>
</result>
[{"addressx":0.0,"addressy":0.0,"begintime":"2014-10-12","brand":null,"city":null,"county":null,"detailedaddress":null,"discountinfo":null,"finishtime":null,"goodsinfo":null,"lanmutype":null,"mainphoto":null,"maintel":null,"mindiscount":0.0,"popularity":null,"reservetel":null,"shopgoods":null,"shopinfo":null,"shopname":"Nike专卖店","strid":"aaa","tradearea":null}]
版权声明:本文为博主原创文章,未经博主允许不得转载。
today lazy . tomorrow die .