Java从FTP下载文件到本地前端+后端

2 篇文章 0 订阅
2 篇文章 0 订阅

一、前端

  1. 1.首先创建下载文件按钮
<template slot-scope="scope">
  <div class="Style_center">
     <el-button @click="downloadFile(scope.row)" type="text" >下载文件</el-button>
  </div>
</template>
  1. 2.其次编写手动触发事件
downloadFile(row){
   this.axios.post("/Zlhzjbxxb/downloadFile", {wjdz:row.wjdz, wjmc:row.wjmc},{
      headers: {   //解决后端接收时多了一个 =
       'Content-Type': 'application/json'
      }
   }).then(res => {
       this.$message.success("成功下载至桌面");
      })
}

        wjdz和wjmc是要传给后端的值。后端获取到文件的FTP路径的时候,路径末尾会莫名的多一个等于(=)的符号,反正我的是出现了,把headers加上就完美解决了

二、后端

        结尾处贴附后端全码

        1.用Map来接收前端传过来的数据

public void downloadFile(@RequestBody Map<String,String> map) throws UnsupportedEncodingException {

        String wjdz = map.get("wjdz");
        String wjmc = map.get("wjmc");
}

        2.获取的文件路径,比如C:\Users\Administrator\Desktop,中间的 \ 符号会被转义,所以需要转义回来,其它符号的转义可以百度一下哦。

//解决文件名中间的符号被转义(如“/”被转义成%2F)
wjdz = wjdz.replaceAll("%(?![0-9a-fA-F]{2})", "%2F");
String wjdzStr = URLDecoder.decode(wjdz, "UTF-8");

        3.在上传FTP文件的时候,为了防止重复的文件名在FTP服务器里出现,于是给每一个文件都设置了不同的文件编号,格式为xxx/2021-05-09/**************(*是uuid创建拼接在后面的),在FTP服务器里面下载文件的话需要找到具体的目录,然后再去下载具体的文件。接下来开始获取FTP文件的名称以及目录名

 //获取第一个“/”的位置
int index = wjdzStr.indexOf("/");

//获取第二个 “/” 的位置
index = wjdzStr.indexOf("/", index + 1);

//获取第二个 “/” 的位置后面的字符串
String result = wjdzStr.substring(index + 1);

//获取第二个 “/” 的位置之前的字符串
String menuDz = wjdzStr.substring(0,index + 1);

        通过以上方式来获取文件的目录和文件名称,result就是需要下载文件的名称,menuDz就是文件所在的FTP服务器里面的目录

        4.接下来就是设置文件的保存地址了

FileOutputStream out = new FileOutputStream("C:\\Users\\Administrator\\Desktop\\" + wjmc )

        这里我是给设置到了桌面,后面的wjmc是该文件的中文名称,总不能给用户展示文件的路径吧......

        5.开始连接FTP服务器并且登录

FTPClient ftpClient = new FTPClient();
ftpClient.connect(hostName, port);//连接
ftpClient.login(userName, password);//登陆

        这里的hostname是自己的IP地址,port是端口号(默认21),userName是用户名,password就是密码了,如果在yml文件里面封装的有,便可以直接调用,没有就自己手动填上去也是一样的

        6.登上去之后便开始下载文件了,首先找到文件目录,然后再去下载

ftpClient.changeWorkingDirectory(menuDz);//切换目录

//下载文件( 获取FTP服务器指定目录的文件)
//参数result,服务器指定文件
//参数out,本地输出流(负责下载后写入)
ftpClient.setFileType(ftpClient.BINARY_FILE_TYPE);
ftpClient.retrieveFile(result,out);

         ftpClient.setFileType这个就是用来配置文件传输形式的,默认ASCII,我们一般都是配置用二进制形式传送

        7.最后最后就是退出登录和关闭连接了

ftpClient.logout();// 退出登录
ftpClient.disconnect();// 断开连接

        8.接下来就是后端的全码了

@PostMapping(value = "/downloadFile")
@ResponseBody
public void downloadFile(@RequestBody Map<String,String> map) throws UnsupportedEncodingException {

        String wjdz = map.get("wjdz");
        String wjmc = map.get("wjmc");

        //解决文件名中间的符号被转义(如“/”被转义成%2F)
        wjdz = wjdz.replaceAll("%(?![0-9a-fA-F]{2})", "%2F");
        String wjdzStr = URLDecoder.decode(wjdz, "UTF-8");

        FTPClient ftpClient = new FTPClient();
        int index = wjdzStr.indexOf("/"); //获取第一个“/”的位置
        index = wjdzStr.indexOf("/", index + 1);//获取第二个 “/” 的位置
        String result = wjdzStr.substring(index + 1);//获取第二个 “/” 的位置后面的字符串
        String menuDz = wjdzStr.substring(0,index + 1);//获取第二个 “/” 的位置之前的字符串
        try (FileOutputStream out = new FileOutputStream("C:\\Users\\Administrator\\Desktop\\" + wjmc )) {

            FtpUtil ftpUtil = new FtpUtil();
            ftpClient.connect(ftpUtil.hostName, ftpUtil.port);//连接
            ftpClient.login(ftpUtil.userName, ftpUtil.password);//登陆
            ftpClient.changeWorkingDirectory(menuDz);//切换目录

            //下载文件( 获取FTP服务器指定目录的文件)
            //参数result,服务器指定文件
            //参数out,本地输出流(负责下载后写入)
            ftpClient.setFileType(ftpClient.BINARY_FILE_TYPE);
            ftpClient.retrieveFile(result,out);

        } catch (SocketException e) {
            e.printStackTrace();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                ftpClient.logout();// 退出登录
                ftpClient.disconnect();// 断开连接
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

        记录这些方便自己的同时也想能帮助一下和我遇到同样困惑的人,有什么不足或者不对的地方还望大佬们指出。

  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
卷 文档 的文件夹 PATH 列表 卷序列号为 000C-BB91 E:. │ config.properties │ Dao.java │ GeneratorDemo.java │ hibernate.cfg.xml │ HibernateDaoImpl.java │ HibernateSessionFactory.java │ HibernateUtil.java │ JsonUtil.java │ list.txt │ log4j.properties │ messageResource_zh_CN.properties │ spring.xml │ struts.xml │ ├─28个java常用的工具类 │ │ Base64.java │ │ Base64DecodingException.java │ │ CConst.java │ │ CharTools.java │ │ ConfigHelper.java │ │ Counter.java │ │ CTool.java │ │ DateHandler.java │ │ DateUtil.java │ │ DealString.java │ │ DebugOut.java │ │ Dom4jHelper.java │ │ Escape.java │ │ ExecHelper.java │ │ FileHelper.java │ │ FileUploadUtil.java │ │ FileUtil.java │ │ ftp二进制与ascii传输方式区别.txt │ │ IPDeal.java │ │ Md5.java │ │ MD5Encrypt.java │ │ MyFileFilter.java │ │ PropsUtil.java │ │ RegExUtil.java │ │ SimpleConfig.java │ │ StringHelper.java │ │ ThumbnailGenerator.java │ │ TradePortalUtil.java │ │ UploadHelper.java │ │ │ └─LogUtil │ │ .classpath │ │ .project │ │ logutil-1.0.6.jar │ │ MANIFEST.MF │ │ │ ├─.settings │ │ org.eclipse.jdt.core.prefs │ │ │ └─src │ │ logging.properties │ │ │ └─com │ └─mine │ │ BigMap.java │ │ LogPack.java │ │ │ └─logging │ ConsoleHandler.java │ ErrorManager.java │ FileHandler.java │ Filter.java │ Formatter.java │ Handler.java │ Level.java │ Logging.java │ LoggingMXBean.java │ LoggingPermission.java │ LogManager.java │ LogRecord.java │ LogUtil.java │ LogUtil2.java │ MemoryHandler.java │ PropertiesFactory.java │ PropertiesMachining.java │ RemoteHandler.java │ Simple0Formatter.java │ Simple1Formatter.java │ Simple2Formatter.java │ Simple3Formatter.java │ SimpleFormatter.java │ SocketHandler.java │ StreamHandler.java │ Test.java │ XMLFormatter.java │ ├─Android快速开发不可或缺的11个辅助类 │ AppUtils.java │ DensityUtils.java │ HttpUtils.java │ KeyBoardUtils.java │ L.java │ NetUtils.java │ ScreenUtils.java │ SDCardUtils.java │ SPUtils.java │ T.java │ ToolFor9Ge.java │ ├─css │ bootstrap.css │ bootstrap.min.css │ component.css │ cylater.css │ global.css │ login.css │ reset.css │ ├─js │ │ avalon.js │ │ components.js │ │ cylater.min.js │ │ global.js │ │ jquery-1.7.1.min.js │ │ jquery-1.8.2.min.js │ │ jquery.cookie.js │ │ jquery.metadata.js │ │ jquery.min.js │ │ jquery.nicescroll.min.js │ │ jquery.validate.js │ │ jquery.validate.message_cn.js │ │ login.js │ │ md5.js │ │ mgTextWidth.js │ │ tinybox.js │ │ │ ├─bootstrap │ │ │ │ │ ├─css │ │ │ bootstrap-responsive.css │ │ │ bootstrap-responsive.min.css │ │ │ bootstrap.css │ │ │ bootstrap.min.css │ │ │ │ │ ├─img │ │ │ glyphicons-halflings-white.png │ │ │ glyphicons-halflings.png │ │ │ │ │ └─js │ │ bootstrap.js │ │ bootstrap.min.js │ │ │ ├─doubanAPI_Demo │ │ dbapi_beta1_20120316.js │ │ doubanapi.html │ │ jquery-1.4.2.js │ │ │ └─jQuery │ jquery-1.11.3.min.js │ jquery-1.7.2.js │ jquery-1.7.2.min.js │ ├─MyBatis-zh │ │ clirr-report.html │ │ configuration.html │ │ cpd.html │ │ cpd.xml │ │ dependencies.html │ │ dependency-info.html │ │ distribution-management.html │ │ dynamic-sql.html │ │ findbugs.html │ │ getting-started.html │ │ index.html │ │ integration.html │ │ issue-tracking.html │ │ java-api.html │ │ jdepend-report.html │ │ license.html │ │ logging.html │ │ mail-lists.html │ │ Mybatis.htm │ │ plugin-management.html │ │ plugins.html │ │ pmd.html │ │ pmd.xml │ │ project-info.html │ │ project-reports.html │ │ project-summary.html │ │ source-repository.html │ │ sqlmap-xml.html │ │ statement-builders.html │ │ surefire-report.html │ │ taglist.html │ │ team-list.html │ │ │ ├─apidocs │ │ index.html │ │ │ ├─cobertura │ │ │ coverage.xml │ │ │ frame-packages.html │ │ │ frame-sourcefiles-org.apache.ibatis.annotations.html │ │ │ frame-sourcefiles-org.apache.ibatis.binding.html │ │ │ frame-sourcefiles-org.apache.ibatis.builder.annotation.html │ │ │ frame-sourcefiles-org.apache.ibatis.builder.html │ │ │ frame-sourcefiles-org.apache.ibatis.builder.xml.html │ │ │ frame-sourcefiles-org.apache.ibatis.cache.decorators.html │ │ │ frame-sourcefiles-org.apache.ibatis.cache.html │ │ │ frame-sourcefiles-org.apache.ibatis.cache.impl.html │ │ │ frame-sourcefiles-org.apache.ibatis.datasource.html │ │ │ frame-sourcefiles-org.apache.ibatis.datasource.jndi.html │ │ │ frame-sourcefiles-org.apache.ibatis.datasource.pooled.html │ │ │ frame-sourcefiles-org.apache.ibatis.datasource.unpooled.html │ │ │ frame-sourcefiles-org.apache.ibatis.exceptions.html │ │ │ frame-sourcefiles-org.apache.ibatis.executor.html │ │ │ frame-sourcefiles-org.apache.ibatis.executor.keygen.html │ │ │ frame-sourcefiles-org.apache.ibatis.executor.loader.cglib.html │ │ │ frame-sourcefiles-org.apache.ibatis.executor.loader.html │ │ │ frame-sourcefiles- org.apache.ibatis.executor.loader.javassist.html │ │ │ frame-sourcefiles-org.apache.ibatis.executor.parameter.html │ │ │ frame-sourcefiles-org.apache.ibatis.executor.result.html │ │ │ frame-sourcefiles-org.apache.ibatis.executor.resultset.html │ │ │ frame-sourcefiles-org.apache.ibatis.executor.statement.html │ │ │ frame-sourcefiles-org.apache.ibatis.io.html │ │ │ frame-sourcefiles-org.apache.ibatis.jdbc.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.commons.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.jdbc.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.jdk14.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.log4j.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.log4j2.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.nologging.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.slf4j.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.stdout.html │ │ │ frame-sourcefiles-org.apache.ibatis.mapping.html │ │ │ frame-sourcefiles-org.apache.ibatis.metadata.html │ │ │ frame-sourcefiles-org.apache.ibatis.parsing.html │ │ │ frame-sourcefiles-org.apache.ibatis.plugin.html │ │ │ frame-sourcefiles-org.apache.ibatis.reflection.factory.html │ │ │ frame-sourcefiles-org.apache.ibatis.reflection.html │ │ │ frame-sourcefiles-org.apache.ibatis.reflection.invoker.html │ │ │ frame-sourcefiles-org.apache.ibatis.reflection.property.html │ │ │ frame-sourcefiles-org.apache.ibatis.reflection.wrapper.html │ │ │ frame-sourcefiles-org.apache.ibatis.scripting.defaults.html │ │ │ frame-sourcefiles-org.apache.ibatis.scripting.html │ │ │ frame-sourcefiles-org.apache.ibatis.scripting.xmltags.html │ │ │ frame-sourcefiles-org.apache.ibatis.session.defaults.html │ │ │ frame-sourcefiles-org.apache.ibatis.session.html │ │ │ frame-sourcefiles-org.apache.ibatis.transaction.html │ │ │ frame-sourcefiles-org.apache.ibatis.transaction.jdbc.html │ │ │ frame-sourcefiles-org.apache.ibatis.transaction.managed.html │ │ │ frame-sourcefiles-org.apache.ibatis.type.html │ │ │ frame-sourcefiles.html │ │ │ frame-summary-org.apache.ibatis.annotations.html │ │ │ frame-summary-org.apache.ibatis.binding.html │ │ │ frame-summary-org.apache.ibatis.builder.annotation.html │ │ │ frame-summary-org.apache.ibatis.builder.html │ │ │ frame-summary-org.apache.ibatis.builder.xml.html │ │ │ frame-summary-org.apache.ibatis.cache.decorators.html │ │ │ frame-summary-org.apache.ibatis.cache.html │ │ │ frame-summary-org.apache.ibatis.cache.impl.html │ │ │ frame-summary-org.apache.ibatis.datasource.html │ │ │ frame-summary-org.apache.ibatis.datasource.jndi.html │ │ │ frame-summary-org.apache.ibatis.datasource.pooled.html │ │ │ frame-summary-org.apache.ibatis.datasource.unpooled.html │ │ │ frame-summary-org.apache.ibatis.exceptions.html │ │ │ frame-summary-org.apache.ibatis.executor.html │ │ │ frame-summary-org.apache.ibatis.executor.keygen.html │ │ │ frame-summary-org.apache.ibatis.executor.loader.cglib.html │ │ │ frame-summary-org.apache.ibatis.executor.loader.html │ │ │ frame-summary-org.apache.ibatis.executor.loader.javassist.html │ │ │ frame-summary-org.apache.ibatis.executor.parameter.html │ │ │ frame-summary-org.apache.ibatis.executor.result.html │ │ │ frame-summary-org.apache.ibatis.executor.resultset.html │ │ │ frame-summary-org.apache.ibatis.executor.statement.html │ │ │ frame-summary-org.apache.ibatis.io.html │ │ │ frame-summary-org.apache.ibatis.jdbc.html │ │ │ frame-summary-org.apache.ibatis.logging.commons.html │ │ │ frame-summary-org.apache.ibatis.logging.html │ │ │ frame-summary-org.apache.ibatis.logging.jdbc.html │ │ │ frame-summary-org.apache.ibatis.logging.jdk14.html │ │ │ frame-summary-org.apache.ibatis.logging.log4j.html │ │ │ frame-summary-org.apache.ibatis.logging.log4j2.html │ │ │ frame-summary-org.apache.ibatis.logging.nologging.html │ │ │ frame-summary-org.apache.ibatis.logging.slf4j.html │ │ │ frame-summary-org.apache.ibatis.logging.stdout.html │ │ │ frame-summary-org.apache.ibatis.mapping.html │ │ │ frame-summary-org.apache.ibatis.metadata.html │ │ │ frame-summary-org.apache.ibatis.parsing.html │ │ │ frame-summary-org.apache.ibatis.plugin.html │ │ │ frame-summary-org.apache.ibatis.reflection.factory.html │ │ │ frame-summary-org.apache.ibatis.reflection.html │ │ │ frame-summary-org.apache.ibatis.reflection.invoker.html │ │ │ frame-summary-org.apache.ibatis.reflection.property.html │ │ │ frame-summary-org.apache.ibatis.reflection.wrapper.html │ │ │ frame-summary-org.apache.ibatis.scripting.defaults.html │ │ │ frame-summary-org.apache.ibatis.scripting.html │ │ │ frame-summary-org.apache.ibatis.scripting.xmltags.html │ │ │ frame-summary-org.apache.ibatis.session.defaults.html │ │ │ frame-summary-org.apache.ibatis.session.html │ │ │ frame-summary-org.apache.ibatis.transaction.html │ │ │ frame-summary-org.apache.ibatis.transaction.jdbc.html │ │ │ frame-summary-org.apache.ibatis.transaction.managed.html │ │ │ frame-summary-org.apache.ibatis.type.html │ │ │ frame-summary.html │ │ │ help.html │ │ │ index.html │ │ │ org.apache.ibatis.annotations.Arg.html │ │ │ org.apache.ibatis.annotations.CacheNamespace.html │ │ │ org.apache.ibatis.annotations.CacheNamespaceRef.html │ │ │ org.apache.ibatis.annotations.Case.html │ │ │ org.apache.ibatis.annotations.ConstructorArgs.html │ │ │ org.apache.ibatis.annotations.Delete.html │ │ │ org.apache.ibatis.annotations.DeleteProvider.html │ │ │ org.apache.ibatis.annotations.Insert.html │ │ │ org.apache.ibatis.annotations.InsertProvider.html │ │ │ org.apache.ibatis.annotations.Lang.html │ │ │ org.apache.ibatis.annotations.Many.html │ │ │ org.apache.ibatis.annotations.MapKey.html │ │ │ org.apache.ibatis.annotations.One.html │ │ │ org.apache.ibatis.annotations.Options.html │ │ │ org.apache.ibatis.annotations.Param.html │ │ │ org.apache.ibatis.annotations.Result.html │ │ │ org.apache.ibatis.annotations.ResultMap.html │ │ │ org.apache.ibatis.annotations.Results.html │ │ │ org.apache.ibatis.annotations.ResultType.html │ │ │ org.apache.ibatis.annotations.Select.html │ │ │ org.apache.ibatis.annotations.SelectKey.html │ │ │ org.apache.ibatis.annotations.SelectProvider.html │ │ │ org.apache.ibatis.annotations.TypeDiscriminator.html │ │ │ org.apache.ibatis.annotations.Update.html │ │ │ org.apache.ibatis.annotations.UpdateProvider.html │ │ │ org.apache.ibatis.binding.BindingException.html │ │ │ org.apache.ibatis.binding.MapperMethod.html │ │ │ org.apache.ibatis.binding.MapperProxy.html │ │ │ org.apache.ibatis.binding.MapperProxyFactory.html │ │ │ org.apache.ibatis.binding.MapperRegistry.html │ │ │ org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.html │ │ │ org.apache.ibatis.builder.annotation.MethodResolver.html │ │ │ org.apache.ibatis.builder.annotation.ProviderSqlSource.html │ │ │ org.apache.ibatis.builder.BaseBuilder.html │ │ │ org.apache.ibatis.builder.BuilderException.html │ │ │ org.apache.ibatis.builder.CacheRefResolver.html │ │ │ org.apache.ibatis.builder.IncompleteElementException.html │ │ │ org.apache.ibatis.builder.MapperBuilderAssistant.html │ │ │ org.apache.ibatis.builder.ParameterExpression.html │ │ │ org.apache.ibatis.builder.ResultMapResolver.html │ │ │ org.apache.ibatis.builder.SqlSourceBuilder.html │ │ │ org.apache.ibatis.builder.StaticSqlSource.html │ │ │ org.apache.ibatis.builder.xml.XMLConfigBuilder.html │ │ │ org.apache.ibatis.builder.xml.XMLIncludeTransformer.html │ │ │ org.apache.ibatis.builder.xml.XMLMapperBuilder.html │ │ │ org.apache.ibatis.builder.xml.XMLMapperEntityResolver.html │ │ │ org.apache.ibatis.builder.xml.XMLStatementBuilder.html │ │ │ org.apache.ibatis.cache.Cache.html │ │ │ org.apache.ibatis.cache.CacheException.html │ │ │ org.apache.ibatis.cache.CacheKey.html │ │ │ org.apache.ibatis.cache.decorators.FifoCache.html │ │ │ org.apache.ibatis.cache.decorators.LoggingCache.html │ │ │ org.apache.ibatis.cache.decorators.LruCache.html │ │ │ org.apache.ibatis.cache.decorators.ScheduledCache.html │ │ │ org.apache.ibatis.cache.decorators.SerializedCache.html │ │ │ org.apache.ibatis.cache.decorators.SoftCache.html │ │ │ org.apache.ibatis.cache.decorators.SynchronizedCache.html │ │ │ org.apache.ibatis.cache.decorators.TransactionalCache.html │ │ │ org.apache.ibatis.cache.decorators.WeakCache.html │ │ │ org.apache.ibatis.cache.impl.PerpetualCache.html │ │ │ org.apache.ibatis.cache.NullCacheKey.html │ │ │ org.apache.ibatis.cache.TransactionalCacheManager.html │ │ │ org.apache.ibatis.datasource.DataSourceException.html │ │ │ org.apache.ibatis.datasource.DataSourceFactory.html │ │ │ org.apache.ibatis.datasource.jndi.JndiDataSourceFactory.html │ │ │ org.apache.ibatis.datasource.pooled.PooledConnection.html │ │ │ org.apache.ibatis.datasource.pooled.PooledDataSource.html │ │ │ org.apache.ibatis.datasource.pooled.PooledDataSourceFactory.html │ │ │ org.apache.ibatis.datasource.pooled.PoolState.html │ │ │ org.apache.ibatis.datasource.unpooled.UnpooledDataSource.html │ │ │ org.apache.ibatis.datasource.unpooled.UnpooledDataSourceFactory.html │ │ │ org.apache.ibatis.exceptions.ExceptionFactory.html │ │ │ org.apache.ibatis.exceptions.IbatisException.html │ │ │ org.apache.ibatis.exceptions.PersistenceException.html │ │ │ org.apache.ibatis.exceptions.TooManyResultsException.html │ │ │ org.apache.ibatis.executor.BaseExecutor.html │ │ │ org.apache.ibatis.executor.BatchExecutor.html │ │ │ org.apache.ibatis.executor.BatchExecutorException.html │ │ │ org.apache.ibatis.executor.BatchResult.html │ │ │ org.apache.ibatis.executor.CachingExecutor.html │ │ │ org.apache.ibatis.executor.ErrorContext.html │ │ │ org.apache.ibatis.executor.ExecutionPlaceholder.html │ │ │ org.apache.ibatis.executor.Executor.html │ │ │ org.apache.ibatis.executor.ExecutorException.html │ │ │ org.apache.ibatis.executor.keygen.Jdbc3KeyGenerator.html │ │ │ org.apache.ibatis.executor.keygen.KeyGenerator.html │ │ │ org.apache.ibatis.executor.keygen.NoKeyGenerator.html │ │ │ org.apache.ibatis.executor.keygen.SelectKeyGenerator.html │ │ │ org.apache.ibatis.executor.loader.AbstractEnhancedDeserializationProxy.html │ │ │ org.apache.ibatis.executor.loader.AbstractSerialStateHolder.html │ │ │ org.apache.ibatis.executor.loader.cglib.CglibProxyFactory.html │ │ │ org.apache.ibatis.executor.loader.cglib.CglibSerialStateHolder.html │ │ │ org.apache.ibatis.executor.loader.CglibProxyFactory.html │ │ │ org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory.html │ │ │ org.apache.ibatis.executor.loader.javassist.JavassistSerialStateHolder.html │ │ │ org.apache.ibatis.executor.loader.JavassistProxyFactory.html │ │ │ org.apache.ibatis.executor.loader.ProxyFactory.html │ │ │ org.apache.ibatis.executor.loader.ResultLoader.html │ │ │ org.apache.ibatis.executor.loader.ResultLoaderMap.html │ │ │ org.apache.ibatis.executor.loader.WriteReplaceInterface.html │ │ │ org.apache.ibatis.executor.parameter.ParameterHandler.html │ │ │ org.apache.ibatis.executor.result.DefaultMapResultHandler.html │ │ │ org.apache.ibatis.executor.result.DefaultResultContext.html │ │ │ org.apache.ibatis.executor.result.DefaultResultHandler.html │ │ │ org.apache.ibatis.executor.ResultExtractor.html │ │ │ org.apache.ibatis.executor.resultset.DefaultResultSetHandler.html │ │ │ org.apache.ibatis.executor.resultset.ResultSetHandler.html │ │ │ org.apache.ibatis.executor.resultset.ResultSetWrapper.html │ │ │ org.apache.ibatis.executor.ReuseExecutor.html │ │ │ org.apache.ibatis.executor.SimpleExecutor.html │ │ │ org.apache.ibatis.executor.statement.BaseStatementHandler.html │ │ │ org.apache.ibatis.executor.statement.CallableStatementHandler.html │ │ │ org.apache.ibatis.executor.statement.PreparedStatementHandler.html │ │ │ org.apache.ibatis.executor.statement.RoutingStatementHandler.html │ │ │ org.apache.ibatis.executor.statement.SimpleStatementHandler.html │ │ │ org.apache.ibatis.executor.statement.StatementHandler.html │ │ │ org.apache.ibatis.io.ClassLoaderWrapper.html │ │ │ org.apache.ibatis.io.DefaultVFS.html │ │ │ org.apache.ibatis.io.ExternalResources.html │ │ │ org.apache.ibatis.io.JBoss6VFS.html │ │ │ org.apache.ibatis.io.ResolverUtil.html │ │ │ org.apache.ibatis.io.Resources.html │ │ │ org.apache.ibatis.io.VFS.html │ │ │ org.apache.ibatis.jdbc.AbstractSQL.html │ │ │ org.apache.ibatis.jdbc.Null.html │ │ │ org.apache.ibatis.jdbc.RuntimeSqlException.html │ │ │ org.apache.ibatis.jdbc.ScriptRunner.html │ │ │ org.apache.ibatis.jdbc.SelectBuilder.html │ │ │ org.apache.ibatis.jdbc.SQL.html │ │ │ org.apache.ibatis.jdbc.SqlBuilder.html │ │ │ org.apache.ibatis.jdbc.SqlRunner.html │ │ │ org.apache.ibatis.logging.commons.JakartaCommonsLoggingImpl.html │ │ │ org.apache.ibatis.logging.jdbc.BaseJdbcLogger.html │ │ │ org.apache.ibatis.logging.jdbc.ConnectionLogger.html │ │ │ org.apache.ibatis.logging.jdbc.PreparedStatementLogger.html │ │ │ org.apache.ibatis.logging.jdbc.ResultSetLogger.html │ │ │ org.apache.ibatis.logging.jdbc.StatementLogger.html │ │ │ org.apache.ibatis.logging.jdk14.Jdk14LoggingImpl.html │ │ │ org.apache.ibatis.logging.Log.html │ │ │ org.apache.ibatis.logging.log4j.Log4jImpl.html │ │ │ org.apache.ibatis.logging.log4j2.Log4j2AbstractLoggerImpl.html │ │ │ org.apache.ibatis.logging.log4j2.Log4j2Impl.html │ │ │ org.apache.ibatis.logging.log4j2.Log4j2LoggerImpl.html │ │ │ org.apache.ibatis.logging.LogException.html │ │ │ org.apache.ibatis.logging.LogFactory.html │ │ │ org.apache.ibatis.logging.nologging.NoLoggingImpl.html │ │ │ org.apache.ibatis.logging.slf4j.Slf4jImpl.html │ │ │ org.apache.ibatis.logging.slf4j.Slf4jLocationAwareLoggerImpl.html │ │ │ org.apache.ibatis.logging.slf4j.Slf4jLoggerImpl.html │ │ │ org.apache.ibatis.logging.stdout.StdOutImpl.html │ │ │ org.apache.ibatis.mapping.BoundSql.html │ │ │ org.apache.ibatis.mapping.CacheBuilder.html │ │ │ org.apache.ibatis.mapping.DatabaseIdProvider.html │ │ │ org.apache.ibatis.mapping.DefaultDatabaseIdProvider.html │ │ │ org.apache.ibatis.mapping.Discriminator.html │ │ │ org.apache.ibatis.mapping.Environment.html │ │ │ org.apache.ibatis.mapping.MappedStatement.html │ │ │ org.apache.ibatis.mapping.ParameterMap.html │ │ │ org.apache.ibatis.mapping.ParameterMapping.html │ │ │ org.apache.ibatis.mapping.ParameterMode.html │ │ │ org.apache.ibatis.mapping.ResultFlag.html │ │ │ org.apache.ibatis.mapping.ResultMap.html │ │ │ org.apache.ibatis.mapping.ResultMapping.html │ │ │ org.apache.ibatis.mapping.ResultSetType.html │ │ │ org.apache.ibatis.mapping.SqlCommandType.html │ │ │ org.apache.ibatis.mapping.SqlSource.html │ │ │ org.apache.ibatis.mapping.StatementType.html │ │ │ org.apache.ibatis.mapping.VendorDatabaseIdProvider.html │ │ │ org.apache.ibatis.metadata.Column.html │ │ │ org.apache.ibatis.metadata.Database.html │ │ │ org.apache.ibatis.metadata.DatabaseFactory.html │ │ │ org.apache.ibatis.metadata.Table.html │ │ │ org.apache.ibatis.parsing.GenericTokenParser.html │ │ │ org.apache.ibatis.parsing.ParsingException.html │ │ │ org.apache.ibatis.parsing.PropertyParser.html │ │ │ org.apache.ibatis.parsing.TokenHandler.html │ │ │ org.apache.ibatis.parsing.XNode.html │ │ │ org.apache.ibatis.parsing.XPathParser.html │ │ │ org.apache.ibatis.plugin.Interceptor.html │ │ │ org.apache.ibatis.plugin.InterceptorChain.html │ │ │ org.apache.ibatis.plugin.Intercepts.html │ │ │ org.apache.ibatis.plugin.Invocation.html │ │ │ org.apache.ibatis.plugin.Plugin.html │ │ │ org.apache.ibatis.plugin.PluginException.html │ │ │ org.apache.ibatis.plugin.Signature.html │ │ │ org.apache.ibatis.reflection.ExceptionUtil.html │ │ │ org.apache.ibatis.reflection.factory.DefaultObjectFactory.html │ │ │ org.apache.ibatis.reflection.factory.ObjectFactory.html │ │ │ org.apache.ibatis.reflection.invoker.GetFieldInvoker.html │ │ │ org.apache.ibatis.reflection.invoker.Invoker.html │ │ │ org.apache.ibatis.reflection.invoker.MethodInvoker.html │ │ │ org.apache.ibatis.reflection.invoker.SetFieldInvoker.html │ │ │ org.apache.ibatis.reflection.MetaClass.html │ │ │ org.apache.ibatis.reflection.MetaObject.html │ │ │ org.apache.ibatis.reflection.property.PropertyCopier.html │ │ │ org.apache.ibatis.reflection.property.PropertyNamer.html │ │ │ org.apache.ibatis.reflection.property.PropertyTokenizer.html │ │ │ org.apache.ibatis.reflection.ReflectionException.html │ │ │ org.apache.ibatis.reflection.Reflector.html │ │ │ org.apache.ibatis.reflection.SystemMetaObject.html │ │ │ org.apache.ibatis.reflection.wrapper.BaseWrapper.html │ │ │ org.apache.ibatis.reflection.wrapper.BeanWrapper.html │ │ │ org.apache.ibatis.reflection.wrapper.CollectionWrapper.html │ │ │ org.apache.ibatis.reflection.wrapper.DefaultObjectWrapperFactory.html │ │ │ org.apache.ibatis.reflection.wrapper.MapWrapper.html │ │ │ org.apache.ibatis.reflection.wrapper.ObjectWrapper.html │ │ │ org.apache.ibatis.reflection.wrapper.ObjectWrapperFactory.html │ │ │ org.apache.ibatis.scripting.defaults.DefaultParameterHandler.html │ │ │ org.apache.ibatis.scripting.defaults.RawLanguageDriver.html │ │ │ org.apache.ibatis.scripting.defaults.RawSqlSource.html │ │ │ org.apache.ibatis.scripting.LanguageDriver.html │ │ │ org.apache.ibatis.scripting.LanguageDriverRegistry.html │ │ │ org.apache.ibatis.scripting.ScriptingException.html │ │ │ org.apache.ibatis.scripting.xmltags.ChooseSqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.DynamicContext.html │ │ │ org.apache.ibatis.scripting.xmltags.DynamicSqlSource.html │ │ │ org.apache.ibatis.scripting.xmltags.ExpressionEvaluator.html │ │ │ org.apache.ibatis.scripting.xmltags.ForEachSqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.IfSqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.MixedSqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.OgnlCache.html │ │ │ org.apache.ibatis.scripting.xmltags.SetSqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.SqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.TextSqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.TrimSqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.VarDeclSqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.WhereSqlNode.html │ │ │ org.apache.ibatis.scripting.xmltags.XMLLanguageDriver.html │ │ │ org.apache.ibatis.scripting.xmltags.XMLScriptBuilder.html │ │ │ org.apache.ibatis.session.AutoMappingBehavior.html │ │ │ org.apache.ibatis.session.Configuration.html │ │ │ org.apache.ibatis.session.defaults.DefaultSqlSession.html │ │ │ org.apache.ibatis.session.defaults.DefaultSqlSessionFactory.html │ │ │ org.apache.ibatis.session.ExecutorType.html │ │ │ org.apache.ibatis.session.LocalCacheScope.html │ │ │ org.apache.ibatis.session.ResultContext.html │ │ │ org.apache.ibatis.session.ResultHandler.html │ │ │ org.apache.ibatis.session.RowBounds.html │ │ │ org.apache.ibatis.session.SqlSession.html │ │ │ org.apache.ibatis.session.SqlSessionException.html │ │ │ org.apache.ibatis.session.SqlSessionFactory.html │ │ │ org.apache.ibatis.session.SqlSessionFactoryBuilder.html │ │ │ org.apache.ibatis.session.SqlSessionManager.html │ │ │ org.apache.ibatis.session.TransactionIsolationLevel.html │ │ │ org.apache.ibatis.transaction.jdbc.JdbcTransaction.html │ │ │ org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory.html │ │ │ org.apache.ibatis.transaction.managed.ManagedTransaction.html │ │ │ org.apache.ibatis.transaction.managed.ManagedTransactionFactory.html │ │ │ org.apache.ibatis.transaction.Transaction.html │ │ │ org.apache.ibatis.transaction.TransactionException.html │ │ │ org.apache.ibatis.transaction.TransactionFactory.html │ │ │ org.apache.ibatis.type.Alias.html │ │ │ org.apache.ibatis.type.ArrayTypeHandler.html │ │ │ org.apache.ibatis.type.BaseTypeHandler.html │ │ │ org.apache.ibatis.type.BigDecimalTypeHandler.html │ │ │ org.apache.ibatis.type.BigIntegerTypeHandler.html │ │ │ org.apache.ibatis.type.BlobByteObjectArrayTypeHandler.html │ │ │ org.apache.ibatis.type.BlobTypeHandler.html │ │ │ org.apache.ibatis.type.BooleanTypeHandler.html │ │ │ org.apache.ibatis.type.ByteArrayTypeHandler.html │ │ │ org.apache.ibatis.type.ByteArrayUtils.html │ │ │ org.apache.ibatis.type.ByteObjectArrayTypeHandler.html │ │ │ org.apache.ibatis.type.ByteTypeHandler.html │ │ │ org.apache.ibatis.type.CharacterTypeHandler.html │ │ │ org.apache.ibatis.type.ClobTypeHandler.html │ │ │ org.apache.ibatis.type.DateOnlyTypeHandler.html │ │ │ org.apache.ibatis.type.DateTypeHandler.html │ │ │ org.apache.ibatis.type.DoubleTypeHandler.html │ │ │ org.apache.ibatis.type.EnumOrdinalTypeHandler.html │ │ │ org.apache.ibatis.type.EnumTypeHandler.html │ │ │ org.apache.ibatis.type.FloatTypeHandler.html │ │ │ org.apache.ibatis.type.IntegerTypeHandler.html │ │ │ org.apache.ibatis.type.JdbcType.html │ │ │ org.apache.ibatis.type.LongTypeHandler.html │ │ │ org.apache.ibatis.type.MappedJdbcTypes.html │ │ │ org.apache.ibatis.type.MappedTypes.html │ │ │ org.apache.ibatis.type.NClobTypeHandler.html │ │ │ org.apache.ibatis.type.NStringTypeHandler.html │ │ │ org.apache.ibatis.type.ObjectTypeHandler.html │ │ │ org.apache.ibatis.type.ShortTypeHandler.html │ │ │ org.apache.ibatis.type.SimpleTypeRegistry.html │ │ │ org.apache.ibatis.type.SqlDateTypeHandler.html │ │ │ org.apache.ibatis.type.SqlTimestampTypeHandler.html │ │ │ org.apache.ibatis.type.SqlTimeTypeHandler.html │ │ │ org.apache.ibatis.type.StringTypeHandler.html │ │ │ org.apache.ibatis.type.TimeOnlyTypeHandler.html │ │ │ org.apache.ibatis.type.TypeAliasRegistry.html │ │ │ org.apache.ibatis.type.TypeException.html │ │ │ org.apache.ibatis.type.TypeHandler.html │ │ │ org.apache.ibatis.type.TypeHandlerRegistry.html │ │ │ org.apache.ibatis.type.TypeReference.html │ │ │ org.apache.ibatis.type.UnknownTypeHandler.html │ │ │ │ │ ├─css │ │ │ help.css │ │ │ main.css │ │ │ sortabletable.css │ │ │ source-viewer.css │ │ │ tooltip.css │ │ │ │ │ ├─images │ │ └─js │ │ customsorttypes.js │ │ popup.js │ │ sortabletable.js │ │ stringbuilder.js │ │ │ ├─css │ │ apache-maven-fluido-1.3.0.min.css │ │ print.css │ │ site.css │ │ │ ├─images │ │ ├─logos │ │ └─profiles │ ├─img │ ├─js │ │ apache-maven-fluido-1.3.0.min.js │ │ │ ├─xref │ │ │ allclasses-frame.html │ │ │ index.html │ │ │ overview-frame.html │ │ │ overview-summary.html │ │ │ stylesheet.css │ │ │ │ │ └─org │ │ └─apache │ │ └─ibatis │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ │ │ ├─annotations │ │ │ Arg.html │ │ │ CacheNamespace.html │ │ │ CacheNamespaceRef.html │ │ │ Case.html │ │ │ ConstructorArgs.html │ │ │ Delete.html │ │ │ DeleteProvider.html │ │ │ Insert.html │ │ │ InsertProvider.html │ │ │ Lang.html │ │ │ Many.html │ │ │ MapKey.html │ │ │ One.html │ │ │ Options.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ Param.html │ │ │ Result.html │ │ │ ResultMap.html │ │ │ Results.html │ │ │ ResultType.html │ │ │ Select.html │ │ │ SelectKey.html │ │ │ SelectProvider.html │ │ │ TypeDiscriminator.html │ │ │ Update.html │ │ │ UpdateProvider.html │ │ │ │ │ ├─binding │ │ │ BindingException.html │ │ │ MapperMethod.html │ │ │ MapperProxy.html │ │ │ MapperProxyFactory.html │ │ │ MapperRegistry.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ │ │ ├─builder │ │ │ │ BaseBuilder.html │ │ │ │ BuilderException.html │ │ │ │ CacheRefResolver.html │ │ │ │ IncompleteElementException.html │ │ │ │ MapperBuilderAssistant.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ ParameterExpression.html │ │ │ │ ResultMapResolver.html │ │ │ │ SqlSourceBuilder.html │ │ │ │ StaticSqlSource.html │ │ │ │ │ │ │ ├─annotation │ │ │ │ MapperAnnotationBuilder.html │ │ │ │ MethodResolver.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ ProviderSqlSource.html │ │ │ │ │ │ │ └─xml │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ XMLConfigBuilder.html │ │ │ XMLIncludeTransformer.html │ │ │ XMLMapperBuilder.html │ │ │ XMLMapperEntityResolver.html │ │ │ XMLStatementBuilder.html │ │ │ │ │ ├─cache │ │ │ │ Cache.html │ │ │ │ CacheException.html │ │ │ │ CacheKey.html │ │ │ │ NullCacheKey.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ TransactionalCacheManager.html │ │ │ │ │ │ │ ├─decorators │ │ │ │ FifoCache.html │ │ │ │ LoggingCache.html │ │ │ │ LruCache.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ ScheduledCache.html │ │ │ │ SerializedCache.html │ │ │ │ SoftCache.html │ │ │ │ SynchronizedCache.html │ │ │ │ TransactionalCache.html │ │ │ │ WeakCache.html │ │ │ │ │ │ │ └─impl │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ PerpetualCache.html │ │ │ │ │ ├─datasource │ │ │ │ DataSourceException.html │ │ │ │ DataSourceFactory.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─jndi │ │ │ │ JndiDataSourceFactory.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─pooled │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ PooledConnection.html │ │ │ │ PooledDataSource.html │ │ │ │ PooledDataSourceFactory.html │ │ │ │ PoolState.html │ │ │ │ │ │ │ └─unpooled │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ UnpooledDataSource.html │ │ │ UnpooledDataSourceFactory.html │ │ │ │ │ ├─exceptions │ │ │ ExceptionFactory.html │ │ │ IbatisException.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ PersistenceException.html │ │ │ TooManyResultsException.html │ │ │ │ │ ├─executor │ │ │ │ BaseExecutor.html │ │ │ │ BatchExecutor.html │ │ │ │ BatchExecutorException.html │ │ │ │ BatchResult.html │ │ │ │ CachingExecutor.html │ │ │ │ ErrorContext.html │ │ │ │ ExecutionPlaceholder.html │ │ │ │ Executor.html │ │ │ │ ExecutorException.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ ResultExtractor.html │ │ │ │ ReuseExecutor.html │ │ │ │ SimpleExecutor.html │ │ │ │ │ │ │ ├─keygen │ │ │ │ Jdbc3KeyGenerator.html │ │ │ │ KeyGenerator.html │ │ │ │ NoKeyGenerator.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ SelectKeyGenerator.html │ │ │ │ │ │ │ ├─loader │ │ │ │ │ AbstractEnhancedDeserializationProxy.html │ │ │ │ │ AbstractSerialStateHolder.html │ │ │ │ │ CglibProxyFactory.html │ │ │ │ │ JavassistProxyFactory.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ ProxyFactory.html │ │ │ │ │ ResultLoader.html │ │ │ │ │ ResultLoaderMap.html │ │ │ │ │ WriteReplaceInterface.html │ │ │ │ │ │ │ │ │ ├─cglib │ │ │ │ │ CglibProxyFactory.html │ │ │ │ │ CglibSerialStateHolder.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ │ │ │ │ └─javassist │ │ │ │ JavassistProxyFactory.html │ │ │ │ JavassistSerialStateHolder.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─parameter │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ ParameterHandler.html │ │ │ │ │ │ │ ├─result │ │ │ │ DefaultMapResultHandler.html │ │ │ │ DefaultResultContext.html │ │ │ │ DefaultResultHandler.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─resultset │ │ │ │ DefaultResultSetHandler.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ ResultSetHandler.html │ │ │ │ ResultSetWrapper.html │ │ │ │ │ │ │ └─statement │ │ │ BaseStatementHandler.html │ │ │ CallableStatementHandler.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ PreparedStatementHandler.html │ │ │ RoutingStatementHandler.html │ │ │ SimpleStatementHandler.html │ │ │ StatementHandler.html │ │ │ │ │ ├─io │ │ │ ClassLoaderWrapper.html │ │ │ DefaultVFS.html │ │ │ ExternalResources.html │ │ │ JBoss6VFS.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ ResolverUtil.html │ │ │ Resources.html │ │ │ VFS.html │ │ │ │ │ ├─jdbc │ │ │ AbstractSQL.html │ │ │ Null.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ RuntimeSqlException.html │ │ │ ScriptRunner.html │ │ │ SelectBuilder.html │ │ │ SQL.html │ │ │ SqlBuilder.html │ │ │ SqlRunner.html │ │ │ │ │ ├─logging │ │ │ │ Log.html │ │ │ │ LogException.html │ │ │ │ LogFactory.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─commons │ │ │ │ JakartaCommonsLoggingImpl.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─jdbc │ │ │ │ BaseJdbcLogger.html │ │ │ │ ConnectionLogger.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ PreparedStatementLogger.html │ │ │ │ ResultSetLogger.html │ │ │ │ StatementLogger.html │ │ │ │ │ │ │ ├─jdk14 │ │ │ │ Jdk14LoggingImpl.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─log4j │ │ │ │ Log4jImpl.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─log4j2 │ │ │ │ Log4j2AbstractLoggerImpl.html │ │ │ │ Log4j2Impl.html │ │ │ │ Log4j2LoggerImpl.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─nologging │ │ │ │ NoLoggingImpl.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─slf4j │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ Slf4jImpl.html │ │ │ │ Slf4jLocationAwareLoggerImpl.html │ │ │ │ Slf4jLoggerImpl.html │ │ │ │ │ │ │ └─stdout │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ StdOutImpl.html │ │ │ │ │ ├─mapping │ │ │ BoundSql.html │ │ │ CacheBuilder.html │ │ │ DatabaseIdProvider.html │ │ │ DefaultDatabaseIdProvider.html │ │ │ Discriminator.html │ │ │ Environment.html │ │ │ MappedStatement.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ ParameterMap.html │ │ │ ParameterMapping.html │ │ │ ParameterMode.html │ │ │ ResultFlag.html │ │ │ ResultMap.html │ │ │ ResultMapping.html │ │ │ ResultSetType.html │ │ │ SqlCommandType.html │ │ │ SqlSource.html │ │ │ StatementType.html │ │ │ VendorDatabaseIdProvider.html │ │ │ │ │ ├─metadata │ │ │ Column.html │ │ │ Database.html │ │ │ DatabaseFactory.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ Table.html │ │ │ │ │ ├─parsing │ │ │ GenericTokenParser.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ ParsingException.html │ │ │ PropertyParser.html │ │ │ TokenHandler.html │ │ │ XNode.html │ │ │ XPathParser.html │ │ │ │ │ ├─plugin │ │ │ Interceptor.html │ │ │ InterceptorChain.html │ │ │ Intercepts.html │ │ │ Invocation.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ Plugin.html │ │ │ PluginException.html │ │ │ Signature.html │ │ │ │ │ ├─reflection │ │ │ │ ExceptionUtil.html │ │ │ │ MetaClass.html │ │ │ │ MetaObject.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ ReflectionException.html │ │ │ │ Reflector.html │ │ │ │ SystemMetaObject.html │ │ │ │ │ │ │ ├─factory │ │ │ │ DefaultObjectFactory.html │ │ │ │ ObjectFactory.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ ├─invoker │ │ │ │ GetFieldInvoker.html │ │ │ │ Invoker.html │ │ │ │ MethodInvoker.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ SetFieldInvoker.html │ │ │ │ │ │ │ ├─property │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ PropertyCopier.html │ │ │ │ PropertyNamer.html │ │ │ │ PropertyTokenizer.html │ │ │ │ │ │ │ └─wrapper │ │ │ BaseWrapper.html │ │ │ BeanWrapper.html │ │ │ CollectionWrapper.html │ │ │ DefaultObjectWrapperFactory.html │ │ │ MapWrapper.html │ │ │ ObjectWrapper.html │ │ │ ObjectWrapperFactory.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ │ │ ├─scripting │ │ │ │ LanguageDriver.html │ │ │ │ LanguageDriverRegistry.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ ScriptingException.html │ │ │ │ │ │ │ ├─defaults │ │ │ │ DefaultParameterHandler.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ RawLanguageDriver.html │ │ │ │ RawSqlSource.html │ │ │ │ │ │ │ └─xmltags │ │ │ ChooseSqlNode.html │ │ │ DynamicContext.html │ │ │ DynamicSqlSource.html │ │ │ ExpressionEvaluator.html │ │ │ ForEachSqlNode.html │ │ │ IfSqlNode.html │ │ │ MixedSqlNode.html │ │ │ OgnlCache.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ SetSqlNode.html │ │ │ SqlNode.html │ │ │ TextSqlNode.html │ │ │ TrimSqlNode.html │ │ │ VarDeclSqlNode.html │ │ │ WhereSqlNode.html │ │ │ XMLLanguageDriver.html │ │ │ XMLScriptBuilder.html │ │ │ │ │ ├─session │ │ │ │ AutoMappingBehavior.html │ │ │ │ Configuration.html │ │ │ │ ExecutorType.html │ │ │ │ LocalCacheScope.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ ResultContext.html │ │ │ │ ResultHandler.html │ │ │ │ RowBounds.html │ │ │ │ SqlSession.html │ │ │ │ SqlSessionException.html │ │ │ │ SqlSessionFactory.html │ │ │ │ SqlSessionFactoryBuilder.html │ │ │ │ SqlSessionManager.html │ │ │ │ TransactionIsolationLevel.html │ │ │ │ │ │ │ └─defaults │ │ │ DefaultSqlSession.html │ │ │ DefaultSqlSessionFactory.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ │ │ ├─transaction │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ Transaction.html │ │ │ │ TransactionException.html │ │ │ │ TransactionFactory.html │ │ │ │ │ │ │ ├─jdbc │ │ │ │ JdbcTransaction.html │ │ │ │ JdbcTransactionFactory.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ │ │ │ └─managed │ │ │ ManagedTransaction.html │ │ │ ManagedTransactionFactory.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ │ │ └─type │ │ Alias.html │ │ ArrayTypeHandler.html │ │ BaseTypeHandler.html │ │ BigDecimalTypeHandler.html │ │ BigIntegerTypeHandler.html │ │ BlobByteObjectArrayTypeHandler.html │ │ BlobTypeHandler.html │ │ BooleanTypeHandler.html │ │ ByteArrayTypeHandler.html │ │ ByteArrayUtils.html │ │ ByteObjectArrayTypeHandler.html │ │ ByteTypeHandler.html │ │ CharacterTypeHandler.html │ │ ClobTypeHandler.html │ │ DateOnlyTypeHandler.html │ │ DateTypeHandler.html │ │ DoubleTypeHandler.html │ │ EnumOrdinalTypeHandler.html │ │ EnumTypeHandler.html │ │ FloatTypeHandler.html │ │ IntegerTypeHandler.html │ │ JdbcType.html │ │ LongTypeHandler.html │ │ MappedJdbcTypes.html │ │ MappedTypes.html │ │ NClobTypeHandler.html │ │ NStringTypeHandler.html │ │ ObjectTypeHandler.html │ │ package-frame.html │ │ package-summary.html │ │ ShortTypeHandler.html │ │ SimpleTypeRegistry.html │ │ SqlDateTypeHandler.html │ │ SqlTimestampTypeHandler.html │ │ SqlTimeTypeHandler.html │ │ StringTypeHandler.html │ │ TimeOnlyTypeHandler.html │ │ TypeAliasRegistry.html │ │ TypeException.html │ │ TypeHandler.html │ │ TypeHandlerRegistry.html │ │ TypeReference.html │ │ UnknownTypeHandler.html │ │ │ └─xref-test │ │ allclasses-frame.html │ │ index.html │ │ overview-frame.html │ │ overview-summary.html │ │ stylesheet.css │ │ │ ├─com │ │ ├─badbeans │ │ │ BeanWithDifferentTypeGetterSetter.html │ │ │ BeanWithDifferentTypeOverloadedSetter.html │ │ │ BeanWithNoGetterOverloadedSetters.html │ │ │ BeanWithOverloadedSetter.html │ │ │ GoodBean.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ │ │ ├─domain │ │ │ └─misc │ │ │ Employee.html │ │ │ package-frame.html │ │ │ package-summary.html │ │ │ │ │ ├─ibatis │ │ │ ├─common │ │ │ │ ├─jdbc │ │ │ │ │ DbcpConfiguration.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ ScriptRunner.html │ │ │ │ │ SimpleDataSource.html │ │ │ │ │ │ │ │ │ ├─resources │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ Resources.html │ │ │ │ │ ResourcesTest.html │ │ │ │ │ │ │ │ │ └─util │ │ │ │ NodeEvent.html │ │ │ │ NodeEventParser.html │ │ │ │ NodeEventWrapper.html │ │ │ │ NodeletParserTest.html │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ PaginatedArrayList.html │ │ │ │ PaginatedArrayListTest.html │ │ │ │ PaginatedList.html │ │ │ │ Stopwatch.html │ │ │ │ │ │ │ ├─dao │ │ │ │ ├─client │ │ │ │ │ │ Dao.html │ │ │ │ │ │ DaoException.html │ │ │ │ │ │ DaoManager.html │ │ │ │ │ │ DaoManagerBuilder.html │ │ │ │ │ │ DaoTransaction.html │ │ │ │ │ │ package-frame.html │ │ │ │ │ │ package-summary.html │ │ │ │ │ │ │ │ │ │ │ └─template │ │ │ │ │ DaoTemplate.html │ │ │ │ │ JdbcDaoTemplate.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ SqlMapDaoTemplate.html │ │ │ │ │ │ │ │ │ └─engine │ │ │ │ ├─builder │ │ │ │ │ └─xml │ │ │ │ │ DaoClasspathEntityResolver.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ XmlDaoManagerBuilder.html │ │ │ │ │ │ │ │ │ ├─impl │ │ │ │ │ DaoContext.html │ │ │ │ │ DaoImpl.html │ │ │ │ │ DaoProxy.html │ │ │ │ │ DaoTransactionState.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ StandardDaoManager.html │ │ │ │ │ │ │ │ │ └─transaction │ │ │ │ │ ConnectionDaoTransaction.html │ │ │ │ │ DaoTransactionManager.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ │ │ │ │ ├─external │ │ │ │ │ ExternalDaoTransaction.html │ │ │ │ │ ExternalDaoTransactionManager.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ │ │ │ │ ├─jdbc │ │ │ │ │ JdbcDaoTransaction.html │ │ │ │ │ JdbcDaoTransactionManager.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ │ │ │ │ └─sqlmap │ │ │ │ package-frame.html │ │ │ │ package-summary.html │ │ │ │ SqlMapDaoTransaction.html │ │ │ │ SqlMapDaoTransactionManager.html │ │ │ │ │ │ │ ├─jpetstore │ │ │ │ ├─domain │ │ │ │ │ Account.html │ │ │ │ │ BeanIntrospector.html │ │ │ │ │ BeanTest.html │ │ │ │ │ Cart.html │ │ │ │ │ CartItem.html │ │ │ │ │ Category.html │ │ │ │ │ ClassIntrospector.html │ │ │ │ │ DomainFixture.html │ │ │ │ │ Item.html │ │ │ │ │ LineItem.html │ │ │ │ │ Order.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ Product.html │ │ │ │ │ Sequence.html │ │ │ │ │ │ │ │ │ └─persistence │ │ │ │ │ AccountDaoTest.html │ │ │ │ │ BasePersistenceTest.html │ │ │ │ │ CategoryDaoTest.html │ │ │ │ │ DaoConfig.html │ │ │ │ │ DaoManagerTest.html │ │ │ │ │ ItemDaoTest.html │ │ │ │ │ OrderDaoTest.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ PersistenceFixture.html │ │ │ │ │ ProductDaoTest.html │ │ │ │ │ SequenceDaoTest.html │ │ │ │ │ │ │ │ │ ├─iface │ │ │ │ │ AccountDao.html │ │ │ │ │ CategoryDao.html │ │ │ │ │ ItemDao.html │ │ │ │ │ OrderDao.html │ │ │ │ │ package-frame.html │ │ │ │ │ package-summary.html │ │ │ │ │ ProductDao.html │ │ │ │ │ SequenceDao.html │ │ │ │ │ │ │ │ │ └─sqlmapdao │ │ │ │ AccountSqlMapDao.html │ │ │ │ BaseSqlMapDao.html │ │ │ │ CategorySqlMapDao.html │ │ │ │ ItemSqlMapDao.html │ │ │ │ OrderS
要实现从前端上传和下载PDF文件FTP服务器,可以使用Java编程语言和FTP客户端库。 首先,需要在前端创建一个文件上传表单,并设置相应的文件选择按钮、提交按钮和处理逻辑。用户选择要上传的PDF文件后,将文件发送给后端服务器。 接下来,后端使用Java编写一个处理上传文件的控制器。控制器接收到文件后,使用FTP客户端库连接到FTP服务器。可以使用Apache Commons Net库中提供的FTPClient类。通过FTPClient,可以使用connect()方法连接到FTP服务器,使用login()方法提供用户名和密码进行登录验证,使用setFileType()方法设置文件类型为二进制,并使用storeFile()方法将文件存储到FTP服务器指定的路径。 要实现从FTP服务器下载PDF文件,可以在前端创建一个下载按钮,用户点击按钮后,发起对控制器的请求。后端代码中,使用FTPClient连接到FTP服务器后,使用retrieveFile()方法从服务器下载指定的PDF文件到本地。 在实现上传和下载的过程中,需要注意异常处理和文件路径的设置。确保FTP服务器的地址、端口、用户名和密码正确,并确保FTP服务器的路径正确。 在整个过程中,还需要考虑文件的命名策略和权限管理。可以在上传文件时为文件生成唯一的文件名,避免文件冲突。此外,还可以设置FTP服务器的权限,确保上传的文件只能被授权的用户访问和下载。 通过以上步骤,就可以使用Java实现从前端上传和下载PDF文件FTP服务器了。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值