终于解决了数据库连接的问题!!
昨天的成就:终于又用了一上午的时间解决了数据库连接的问题,对资料下载模块的实现也进行了尝试。
遇到的难题:如何在让下载成功的资料自动在word或wps中打开
今天的任务:实现资料下载模块,进行资料查询模块。
package com.classnet.util.upload; @SuppressWarnings("serial") public class UploadException extends Exception { public UploadException(String message, Throwable cause) { super(message, cause); // TODO Auto-generated constructor stub } public UploadException(String message) { super(message); // TODO Auto-generated constructor stub } public UploadException(Throwable cause) { super(cause); // TODO Auto-generated constructor stub } }
package com.classnet.util.upload; import java.io.File; public class MkDir { public MkDir() { } public void mkDir(String path){ try{ File file = new File(path); if(!file.exists()||file==null){ file.mkdirs(); } }catch(Exception e){ e.printStackTrace(); } } public boolean Exist(String director,String fileName){ return Exist(director+"\"+fileName); } public boolean Exist(String fileName){ boolean flg=false; try{ File file=new File(fileName); if(file.exists()){ flg=true; } }catch(Exception e){ e.printStackTrace(); } return flg; } }