zno2

文件拷贝工具类

https://docs.spring.io/spring/docs/1.2.x/javadoc-api/org/springframework/util/FileCopyUtils.html

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>4.3.1.RELEASE</version>
        </dependency>

 

用法举例:

    @Test
    public void tt() throws IOException{
        FileCopyUtils.copy(new File("E:\\abc.txt"), new File("E:\\abcd.txt"));
    }

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-29
  • 2021-12-06
  • 2021-12-06
  • 2021-12-06
  • 2021-06-22
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
相关资源
相似解决方案