整合 OSS 增加 pom 依赖时呈现谬误:
Cannot resolve com.alibaba.cloud:spring-cloud-starter-alicloud-oss:unknown
官网文档:
https://github.com/alibaba/al…
依照官网文档给的写法会报错,用为找不到对应版本的依赖:
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>aliyun-oss-spring-boot-starter</artifactId>
</dependency>
须要手动增加版本号,这样就 OK 了:
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alicloud-oss</artifactId>
<version>2.2.0.RELEASE</version>
</dependency>