zoukankan      html  css  js  c++  java
  • 第一阶段SCRUM冲刺 06

    终于解决了数据库连接的问题!!

    昨天的成就:终于又用了一上午的时间解决了数据库连接的问题,对资料下载模块的实现也进行了尝试。

    遇到的难题:如何在让下载成功的资料自动在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;
        }
    }
  • 相关阅读:
    文件下载
    python生成pdf
    python保存文件到数据库
    html 表格边线设置
    形态学函数cvMorphologyEx
    图像的形态学梯度
    opencv图像二值化的函数cvThreshold()。 cvAdaptiveThreshol
    自适应二值化的经典方法------大律法
    基于局部阈值化的图像二值化
    边缘检测常见算法
  • 原文地址:https://www.cnblogs.com/Qi77/p/11067581.html
Copyright © 2011-2022 走看看