• 大小: 3.18MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-10
  • 语言: 数据库
  • 标签: ssm  echarts  mysql  

资源简介

SSM+Echarts+Mysql实现的从数据库获取数据展示图表,展示,小案例,亲测(可用)

资源截图

代码片段和文件信息

package com.java.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

import com.java.model.Bar;

public class BarDao {
public List getBarList(Connection con)throws Exception{
String sql=“select * from t_bar“;
PreparedStatement pstmt=con.prepareStatement(sql);
ResultSet rs=pstmt.executeQuery();
List barList=new ArrayList();
while(rs.next()){
Bar bar=new Bar();
bar.setId(rs.getInt(“id“));
bar.setName(rs.getString(“name“));
bar.setValue(rs.getInt(“value“));
barList.add(bar);
}
return barList;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-11-13 09:57  SSM+Echarts+Mysql\
     文件        6485  2017-11-09 18:31  SSM+Echarts+Mysql\db_echart.sql
     目录           0  2017-10-28 14:34  SSM+Echarts+Mysql\Echarts\
     文件         842  2017-10-31 21:52  SSM+Echarts+Mysql\Echarts\.classpath
     文件        1040  2017-10-28 14:34  SSM+Echarts+Mysql\Echarts\.project
     目录           0  2017-10-28 14:34  SSM+Echarts+Mysql\Echarts\.settings\
     文件         567  2017-10-28 14:34  SSM+Echarts+Mysql\Echarts\.settings\.jsdtscope
     文件         364  2017-10-28 14:34  SSM+Echarts+Mysql\Echarts\.settings\org.eclipse.jdt.core.prefs
     文件         473  2017-10-28 14:34  SSM+Echarts+Mysql\Echarts\.settings\org.eclipse.wst.common.component
     文件         345  2017-10-31 21:52  SSM+Echarts+Mysql\Echarts\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2017-10-28 14:34  SSM+Echarts+Mysql\Echarts\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-10-28 14:34  SSM+Echarts+Mysql\Echarts\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2017-10-28 14:34  SSM+Echarts+Mysql\Echarts\build\
     目录           0  2017-11-05 09:37  SSM+Echarts+Mysql\Echarts\build\classes\
     目录           0  2017-11-05 09:37  SSM+Echarts+Mysql\Echarts\build\classes\com\
     目录           0  2017-11-05 09:37  SSM+Echarts+Mysql\Echarts\build\classes\com\java\
     目录           0  2017-11-05 16:55  SSM+Echarts+Mysql\Echarts\build\classes\com\java\dao\
     文件        1662  2017-11-05 09:37  SSM+Echarts+Mysql\Echarts\build\classes\com\java\dao\BarDao.class
     文件        2116  2017-11-05 16:27  SSM+Echarts+Mysql\Echarts\build\classes\com\java\dao\GagueDao.class
     文件        1744  2017-11-05 13:35  SSM+Echarts+Mysql\Echarts\build\classes\com\java\dao\Power2Dao.class
     文件        1702  2017-11-05 09:37  SSM+Echarts+Mysql\Echarts\build\classes\com\java\dao\PowerDao.class
     文件        1913  2017-11-05 16:59  SSM+Echarts+Mysql\Echarts\build\classes\com\java\dao\RadarDao.class
     文件        1710  2017-11-05 15:06  SSM+Echarts+Mysql\Echarts\build\classes\com\java\dao\ScatterDao.class
     文件        2514  2017-11-05 09:37  SSM+Echarts+Mysql\Echarts\build\classes\com\java\dao\UserDao.class
     目录           0  2017-11-05 16:53  SSM+Echarts+Mysql\Echarts\build\classes\com\java\model\
     文件         892  2017-11-05 09:37  SSM+Echarts+Mysql\Echarts\build\classes\com\java\model\Bar.class
     文件        1097  2017-11-05 16:17  SSM+Echarts+Mysql\Echarts\build\classes\com\java\model\Gague.class
     文件        1044  2017-11-05 09:37  SSM+Echarts+Mysql\Echarts\build\classes\com\java\model\Power.class
     文件        1083  2017-11-05 13:35  SSM+Echarts+Mysql\Echarts\build\classes\com\java\model\Power2.class
     文件        1324  2017-11-05 16:59  SSM+Echarts+Mysql\Echarts\build\classes\com\java\model\Radar.class
     文件         919  2017-11-05 15:06  SSM+Echarts+Mysql\Echarts\build\classes\com\java\model\Scatter.class
............此处省略673个文件信息

评论

共有 条评论