- 浏览: 4223 次
最新评论
文章列表
[置顶] 二级级联带数据库
- 博客分类:
- 二级级联带数据库
public class City implements Serializable{
private static final long serialVersionUID = 1L;
private int id;
private String city_Name;
private int provinces_ID;
public City(int id, String cityName, int provincesID) {
super();
this.id = id;
city_Name = cityName;
provinces_ID = province ...
[置顶] poi模板导出
- 博客分类:
- poi模板导出
public class excel2POI { @SuppressWarnings("unchecked") public void excel(String outputFile, List dataList)throws FileNotFoundException, IOException { String is = "test.xls"; System.out.println(is); POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(is)); // 用模板文件构 ...
ssh http://wangjinlongaisong-126-com.iteye.com/blog/1176217
基础类
public class PageOper {
private int currentPage;//当前页面 private int pageSize=2; //页面显示的条数 private int countPage; //页面的总数 private int count; //总体数据 private List<SpotInfo> datas;
public int getCurrentPage() { return currentPage; }
public void setCurrentPage(int currentPage) { ...
jdbc读取属性文件连接数据库 源代码如下
//======DbConnection类如下 package util;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Properties;
public class DbConnection extends Properties {
pri ...