OSS Spring Boot :: Auto-Configure

OSS Spring Boot Auto-Configure

License

License

Categories

Categories

Spring Boot Container Microservices Auto Application Layer Libs Code Generators config Configuration
GroupId

GroupId

cn.haoxiaoyong.oss
ArtifactId

ArtifactId

oss-spring-boot-autoconfigure
Last Version

Last Version

0.0.2-beta
Release Date

Release Date

Type

Type

jar
Description

Description

OSS Spring Boot :: Auto-Configure
OSS Spring Boot Auto-Configure

Download oss-spring-boot-autoconfigure

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.springframework.boot : spring-boot-autoconfigure jar 2.1.4.RELEASE
org.springframework.boot : spring-boot-configuration-processor Optional jar
com.aliyun.oss : aliyun-sdk-oss jar 3.8.0

Project Modules

There are no modules declared in this project.

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