Skip to content

Spring Boot starter that auto-configures protocol resolver for resolving resources from Dropbox.

Notifications You must be signed in to change notification settings

maciejwalkowiak/dropbox-resource-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dropbox Resource Spring Boot Starter

Spring Boot starter that auto-configures protocol resolver for resolving resources from Dropbox.

Installation

This project is not published to official Maven repository, but you can include it via JitPack:

  1. Add Jitpack repository:
    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
  2. Add the dependency:
    <dependency>
        <groupId>com.github.maciejwalkowiak</groupId>
        <artifactId>dropbox-resource-spring-boot-starter</artifactId>
        <version>master-SNAPSHOT</version>
    </dependency>

More info about JitPack

How to use?

Using Spring's ResourceLoader:

@Autowired
private ResourceLoader resourceLoader;
...
Resource resource = resourceLoader.getResource("dropbox://file.txt");

Using @Value:

@Value("dropbox://file.txt") 
Resource resource;

But why?

This project is made mainly to demonstrate how to develop custom protocol resolver.

I doubt there will be many projects that will need to use this Dropbox integration, but if you do give me a shout!

About

Spring Boot starter that auto-configures protocol resolver for resolving resources from Dropbox.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages