tangzy
2021-09-02 6539f3fd6486c78bf4fb340dbeedda82a69b703f
1.ftp
2 files modified
32 ■■■■ changed files
src/main/java/org/springblade/common/constant/FtpConstant.java 28 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/FTP/OutJson.java 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/common/constant/FtpConstant.java
@@ -8,22 +8,22 @@
    /**
     * sql connect
     */
    String sql_connect_dev = "jdbc:mysql://223.82.109.183:2083/zhbaw?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true";
    //String sql_connect_dev = "jdbc:mysql://223.82.109.183:2083/zhbaw?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true";
    /**
     * sql connect
     */
    //String sql_connect_dev = "jdbc:mysql://localhost:2083/zhbaw?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true";
    String sql_connect_dev = "jdbc:mysql://localhost:2083/zhbaw?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true";
    /**
     * ftp服务器IP地址
     */
    String ftpHost_dev = "192.168.0.108";
    //String ftpHost_dev = "192.168.0.108";
    /**
     * ftp服务器IP地址
     */
    //String ftpHost_dev = "172.19.1.30";
    String ftpHost_dev = "172.19.1.30";
    /**
     * ftp服务器端口
@@ -33,30 +33,30 @@
    /**
     * ftp服务器用户名
     */
    //String ftpUserName = "yly";
    String ftpUserName = "anonymous";
    String ftpUserName = "yly";
    //String ftpUserName = "anonymous";
    /**
     * ftp服务器密码
     */
    //String ftpPassword = "Yly@123";
    String ftpPassword = "";
    String ftpPassword = "Yly@123";
    //String ftpPassword = "";
    /**
     * ftp服务器路径
     */
    //String ftpPath = "yly/anbao/";
    String ftpPath = "anbao/";
    String ftpPath = "yly/anbao/";
    //String ftpPath = "anbao/";
    /**
     * 本地路径
     */
    //String localPath = "/home/zhongsong/anbao/";
    String localPath = "D:\\anbao\\";
    String localPath = "/home/zhongsong/anbao/";
    //String localPath = "D:\\anbao\\";
    //minio内网ip
    //String ip = "http://47.49.21.216:9000";
    String ip = "http://223.82.109.183:2081";
    String ip = "http://47.49.21.216:9000";
    //String ip = "http://223.82.109.183:2081";
}
src/main/java/org/springblade/modules/FTP/OutJson.java
@@ -152,8 +152,8 @@
     * @return
     */
    public static String TestJson(String fileName){
        File file = new File("D:\\anbao\\"+fileName);
        //File file = new File("/home/zhongsong/anbao/"+fileName);
        //File file = new File("D:\\anbao\\"+fileName);
        File file = new File("/home/zhongsong/anbao/"+fileName);
        StringBuilder localStrBulider = new StringBuilder();
        if(file.isFile() && file.exists()) {
            try {