通过NIO的FileChannel实现文件的切割。 package com.ityj.nio; import lombok.extern.slf4j.Slf4j; import org.springframework.util.StopWatch; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.util.ArrayList; import java.util.List; @Slf4j public class FileSplitBySizeExample { public static void main(String[] args) throws IOException { StopWatch stopWatch = new...