io.minio.errors.XmlParserException: null, etc. when Java MinIO uploads files and reports exceptions

minioClient.putObject(
          "10-26", "/中午14/ces.docx", "C:\\Users\\T480S\\Desktop\\ces.docx", null)

Problem description: io.minio.errors.XmlParserException: null exception when calling putObject

You can check whether the objectName starts with "/"the beginning. This problem does not appear in the Doc document on the official website https://play.min.io测试服务器, but this problem occurs on the local server. Remove the beginning /and solve the problem

MinIO7.0.2jarThe above problem occurs when using the package

Guess you like

Origin blog.csdn.net/qq_43961619/article/details/121035954