@Override
    public void out(String id, OutputStream os) {
        FileInfo fileInfo = baseMapper.selectById(id);
        if (fileInfo != null) {
            S3Object s3Object = parsePath(fileInfo.getPath());
            s3Template.out(s3Object.bucketName, s3Object.objectName, os);
        }
    }
@author zlt
@date 2021/2/13
<p>
Blog: http://zlt2000.gitee.io
Github: https://github.com/zlt2000
zlt-business/file-center/src/main/java/com/central/file/service/impl/S3Service.java