zoukankan      html  css  js  c++  java
  • struts2返回List json

    利用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 .
  • 相关阅读:
    HMM (隐马尔可夫) 推导 (上)
    图模型初识
    K-means 和 EM 比较
    EM-高斯混合模型
    EM算法-完整推导
    EM算法直观认识
    pandas 之 时间序列索引
    K-Means 算法
    接口。
    第一册:lesson ninety-nine。
  • 原文地址:https://www.cnblogs.com/france/p/4808595.html
Copyright © 2011-2022 走看看