When Shangguli Online Education called the aliyun.oss dependency package, it could not find the popular package and could not import it.

insert image description here
insert image description here
There are various opinions on the Internet, the version is too low or the version does not match, and the location of the Alibaba Cloud warehouse has been transferred. I can’t find it.
I’m stupid, maybe I won’t find it. The crash. After trying to adjust the version and introducing new dependencies, nothing happened. Soft use

So the final solution:
no need to change the previous version number and no need to introduce new dependencies to go back to the beginning,
just add two lines of code to the pom.xml of service_oss,
insert image description here
just add these two lines of version number

	<!-- 阿里云oss依赖 -->
  	<dependency>
         <groupId>com.aliyun.oss</groupId>
         <artifactId>aliyun-sdk-oss</artifactId>
         <version>3.10.2</version>
     </dependency>

   	<!-- 日期工具栏依赖 -->
     <dependency>
         <groupId>joda-time</groupId>
         <artifactId>joda-time</artifactId>
         <version>2.10.9</version>
     </dependency>

insert image description here
insert image description here
I don’t know why, anyway, add two sentences to specify the version number to find the dependent package

Guess you like

Origin blog.csdn.net/weixin_47336389/article/details/125246230