OSS Spring Boot Project


License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

cn.haoxiaoyong.oss
ArtifactId

ArtifactId

oss-spring-boot-project
Last Version

Last Version

0.0.2-beta
Release Date

Release Date

Type

Type

pom
Description

Description

OSS Spring Boot Project
OSS Spring Boot Project
Project URL

Project URL

https://github.com/haoxiaoyong1014/oss-spring-boot-project
Source Code Management

Source Code Management

https://github.com/haoxiaoyong1014/oss-spring-boot-project

Download oss-spring-boot-project

How to add to project

<!-- https://jarcasting.com/artifacts/cn.haoxiaoyong.oss/oss-spring-boot-project/ -->
<dependency>
    <groupId>cn.haoxiaoyong.oss</groupId>
    <artifactId>oss-spring-boot-project</artifactId>
    <version>0.0.2-beta</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/cn.haoxiaoyong.oss/oss-spring-boot-project/
implementation 'cn.haoxiaoyong.oss:oss-spring-boot-project:0.0.2-beta'
// https://jarcasting.com/artifacts/cn.haoxiaoyong.oss/oss-spring-boot-project/
implementation ("cn.haoxiaoyong.oss:oss-spring-boot-project:0.0.2-beta")
'cn.haoxiaoyong.oss:oss-spring-boot-project:pom:0.0.2-beta'
<dependency org="cn.haoxiaoyong.oss" name="oss-spring-boot-project" rev="0.0.2-beta">
  <artifact name="oss-spring-boot-project" type="pom" />
</dependency>
@Grapes(
@Grab(group='cn.haoxiaoyong.oss', module='oss-spring-boot-project', version='0.0.2-beta')
)
libraryDependencies += "cn.haoxiaoyong.oss" % "oss-spring-boot-project" % "0.0.2-beta"
[cn.haoxiaoyong.oss/oss-spring-boot-project "0.0.2-beta"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • oss-spring-boot-autoconfigure
  • oss-spring-boot-parent
  • oss-spring-boot-starter

Aliyun Oss Spring Boot Project

Released version

<dependencie>
    <groupId>cn.haoxiaoyong.oss</groupId>
    <artifactId>oss-spring-boot-starter</artifactId>
    <version>0.0.2-beta</version>
</dependencie>

Quick start

oss:
  config:
    enable: true
    access-key-id: 
    access-key-secret: 
    endpoint: 
    bucket-name: 
    @Autowired
    private OssService ossService;

    String url = ossService.upload("oss.png", new File("D:\\hcwork\\work-doc\\oss.png"));

API

  • String upload(String , File);
  • String upload(String , InputStream)
  • BufferedReader download(String)
  • boolean exist(String)
  • delete(String)

Legacy Versions

Oss Spring Boot sdk-oss Spring Boot
0.0.1-beta 3.8.0 2.1.x
0.0.2-beta 3.8.0 2.1.x

Versions

Version
0.0.2-beta
0.0.1-beta