commons-vfs2-spring-boot

Apache Commons Virtual File System Spring Boot Starter

Лицензия

Лицензия

Категории

Категории

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

Группа

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

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

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

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

1.0.1-RELEASE
Дата

Дата

Тип

Тип

pom
Описание

Описание

commons-vfs2-spring-boot
Apache Commons Virtual File System Spring Boot Starter
Ссылка на сайт

Ссылка на сайт

https://github.com/bxforce/commons-vfs2-spring-boot
Организация-разработчик

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

bxforce
Система контроля версий

Система контроля версий

https://github.com/bxforce/commons-vfs2-spring-boot

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

Имя Файла Размер
commons-vfs2-spring-boot-1.0.1-RELEASE.pom 4 KB
Обзор

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

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

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

  • commons-vfs2-spring-boot-autoconfigure
  • commons-vfs2-spring-boot-starter

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