minio上传文件

Blade 未结 1 755

image.png

这个地方改成minio,项目启动报错,org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'minioClient' defined in class path resource [core/oss/config/MinioConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.minio.MinioClient]: Factory method 'minioClient' threw exception; nested exception is java.lang.IllegalArgumentException: no path allowed in endpoint http://10.2.0.9:32056/ems/

改成其它任意名称都没事,请问这个是什么原因导致?

1条回答
  • 2022-09-23 14:04

    单独引入minio的依赖

    <!--Oss-->
    <dependency>
      <groupId>org.springblade</groupId>
      <artifactId>blade-starter-oss</artifactId>
    </dependency>
    <!--MinIO-->
    <dependency>
      <groupId>io.minio</groupId>
      <artifactId>minio</artifactId>
    </dependency>


    0 讨论(0)
提交回复