修改 design single功能

This commit is contained in:
xupei
2023-09-14 12:58:49 +08:00
parent 165449084b
commit cf771a5b77
31 changed files with 687 additions and 102 deletions

View File

@@ -74,6 +74,16 @@ public class MD5Utils {
return md5;
}
public static String encryptFile(InputStream inputStream) {
String md5 = null;
try {
md5 = DigestUtils.md5DigestAsHex(inputStream);
} catch (IOException ioException) {
log.error("文件InputStream md5加密异常ioException##{}", ExceptionUtil.getThrowableList(ioException));
}
return md5;
}
public static void main(String[] args) throws FileNotFoundException, IOException {
File file1 = new File("/Users/yanglei/Documents/阳磊日报2019-04-23.numbers");
File file2 = new File("/Users/yanglei/Documents/7777.numbers");