Spring Boot starter that auto-configures protocol resolver for resolving resources from Dropbox.
This project is not published to official Maven repository, but you can include it via JitPack:
- Add Jitpack repository:
<repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories>
- Add the dependency:
<dependency> <groupId>com.github.maciejwalkowiak</groupId> <artifactId>dropbox-resource-spring-boot-starter</artifactId> <version>master-SNAPSHOT</version> </dependency>
Using Spring's ResourceLoader
:
@Autowired
private ResourceLoader resourceLoader;
...
Resource resource = resourceLoader.getResource("dropbox://file.txt");
Using @Value
:
@Value("dropbox://file.txt")
Resource resource;
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!