france

https://github.com/francecil

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

利用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}]

版权声明:本文为博主原创文章,未经博主允许不得转载。

posted on 2014-11-17 22:51  france  阅读(429)  评论(0编辑  收藏  举报