背景: windows文件名中不能出现以下提示的特殊字符,因此需要提前替换处理。 解决: // 替换\/:*?"<>|为空 fileName.replaceAll("[\\\\/:*?\"<>|]", "");