commons-vfs2-spring-boot-starter

Apache Commons Virtual File System Spring Boot Starter

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

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

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

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

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

1.0.1-RELEASE
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

bxforce

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

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

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

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter jar 2.3.3.RELEASE
com.github.bxforce : commons-vfs2-spring-boot-autoconfigure jar 1.0.1-RELEASE
org.apache.commons : commons-vfs2 jar 2.7.0
com.jcraft : jsch jar 0.1.55

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

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

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