資源簡介
采用springMVC去后臺數據,做Echarts報表

代碼片段和文件信息
package?com.lu.controls;
import?java.util.Date;
import?java.util.HashMap;
import?java.util.List;
import?java.util.Map;
import?javax.servlet.http.HttpServletRequest;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Controller;
import?org.springframework.ui.Model;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.bind.annotation.ResponseBody;
import?com.alibaba.fastjson.JSON;
import?com.lu.chart.Chart;
import?com.lu.form.RruCaseAcctItemForm;
import?com.lu.services.IRruCaseAcctItemService;
@Controller
public?class?RruCaseAcctItemContronl?{
@ResponseBody
@RequestMapping(value=“getEc.do“produces?=?“text/html;charset=UTF-8“)
public?String?getEc(?){
String[]?categories?=?{“鞋“?“襯衫“?“外套“?“牛仔褲“};??
????Integer[]?values?=?{80?50?75?100};??
????Mapject>?map?=?new?HashMapject>();??
????map.put(“categories“?categories);??
????????map.put(“values“?values);??
????String?json=JSON.toJSONString(map);
return?json;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1139??2015-08-19?15:40??Echarts\contronller.java
?????文件????????2899??2015-08-19?15:39??Echarts\show.jsp
?????目錄???????????0??2015-08-19?15:41??Echarts\
- 上一篇:學生成績管理系統 論文 程序
- 下一篇:基于STC89C52單片機的秒表程序
評論
共有 條評論