工具库下载: https://pan.baidu.com/s/1tXXF4zjIfJ9ouObsU5RTpA 提取码:214v
1.打开IDEA
2.在模块下新建个lib文件夹将框架复制进去
3.点击模块按钮
1 public class Test { 2 public static void main(String[] args) throws Exception { 3 FileInputStream fis = new FileInputStream("C:\\Users\\heqiong\\Desktop\\喜洋洋与灰太狼.mp4"); 4 FileOutputStream fos = new FileOutputStream("C:\\Users\\heqiong\\Desktop\\动漫\\喜洋洋与灰太狼.mp4"); 5 6 IOUtils.copy(fis, fos); 7 8 //关流 9 fos.close(); 10 fis.close(); 11 } 12 }