commons-vfs2-spring-boot-autoconfigure

Apache Commons Virtual File System Spring Boot Starter

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы Auto Библиотеки уровня приложения Code Generators config Configuration
Группа

Группа

com.github.bxforce
Идентификатор

Идентификатор

commons-vfs2-spring-boot-autoconfigure
Последняя версия

Последняя версия

1.0.1-RELEASE
Дата

Дата

Тип

Тип

jar
Описание

Описание

commons-vfs2-spring-boot-autoconfigure
Apache Commons Virtual File System Spring Boot Starter
Организация-разработчик

Организация-разработчик

bxforce

Скачать commons-vfs2-spring-boot-autoconfigure

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.bxforce/commons-vfs2-spring-boot-autoconfigure/ -->
<dependency>
    <groupId>com.github.bxforce</groupId>
    <artifactId>commons-vfs2-spring-boot-autoconfigure</artifactId>
    <version>1.0.1-RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.bxforce/commons-vfs2-spring-boot-autoconfigure/
implementation 'com.github.bxforce:commons-vfs2-spring-boot-autoconfigure:1.0.1-RELEASE'
// https://jarcasting.com/artifacts/com.github.bxforce/commons-vfs2-spring-boot-autoconfigure/
implementation ("com.github.bxforce:commons-vfs2-spring-boot-autoconfigure:1.0.1-RELEASE")
'com.github.bxforce:commons-vfs2-spring-boot-autoconfigure:jar:1.0.1-RELEASE'
<dependency org="com.github.bxforce" name="commons-vfs2-spring-boot-autoconfigure" rev="1.0.1-RELEASE">
  <artifact name="commons-vfs2-spring-boot-autoconfigure" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.bxforce', module='commons-vfs2-spring-boot-autoconfigure', version='1.0.1-RELEASE')
)
libraryDependencies += "com.github.bxforce" % "commons-vfs2-spring-boot-autoconfigure" % "1.0.1-RELEASE"
[com.github.bxforce/commons-vfs2-spring-boot-autoconfigure "1.0.1-RELEASE"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot jar 2.3.3.RELEASE
org.springframework.boot : spring-boot-autoconfigure jar 2.3.3.RELEASE
org.springframework.boot : spring-boot-configuration-processor Необязательный jar 2.3.3.RELEASE
org.apache.commons : commons-vfs2 jar 2.7.0
com.jcraft : jsch jar 0.1.55

test (1)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter-test jar 2.3.3.RELEASE

Модули Проекта

Данный проект не имеет модулей.

Apache Commons Virtual File System Spring Boot Starter

Maven Central javadoc

Apache Commons Virtual File System Spring Boot Starter provides an easy way to get your Spring boot application using Apache Commons Virtual File System up and running quickly.

To use the Apache Commons Virtual File System Spring Boot Starter in your projects you can include the maven dependency in your project pom file:

<dependency>
    <groupId>com.github.bxforce</groupId>
    <artifactId>commons-vfs2-spring-boot-starter</artifactId>
    <version>1.0.1-RELEASE</version>
</dependency>

Usage

First add the configuration in your application.yml. There is a lot of parameters, you can check the file SftpFileSystemProperties and the doc of vfs2 (https://commons.apache.org/proper/commons-vfs/api.html) if you need something particular.

commons-vfs2:
    sftp:
        preferredAuthentications: password

In your code, you autowire FileSystemManager and the options FileSystemOptions

@Autowired
private FileSystemManager manager;

@Autowired
private FileSystemOptions options;

And you can then connect to the sftp with the manager. ftpURI is the url to your ftp, ie sftp://username:password@domain.com/path/to/file

FileObject remote = manager.resolveFile(ftpURI, options);

Версии библиотеки

Версия
1.0.1-RELEASE
1.0.0-RELEASE