`
文章列表
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 ...
  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

    博客分类:
  • ssh
  ssh    http://wangjinlongaisong-126-com.iteye.com/blog/1176217
sdsdfds

mysql分页

基础类 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 ...
Global site tag (gtag.js) - Google Analytics