mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-23 11:09:29 +08:00
上传仅使用minio
This commit is contained in:
@@ -163,4 +163,9 @@ public class HelperUtil {
|
||||
return mapper.writerWithDefaultPrettyPrinter().writeValueAsString(obj);
|
||||
}
|
||||
|
||||
public static String fileExt(String filename) {
|
||||
String[] array = filename.split("\\.");
|
||||
return array[array.length - 1].toLowerCase();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user