Spring Boot Autoconfigurer for picturesafe-search

Starter for picturesafe-search based Spring Boot applications

Лицензия

Лицензия

Категории

Категории

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

Группа

de.picturesafe.search
Идентификатор

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

picturesafe-search-spring-boot-autoconfigure
Последняя версия

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

3.5.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

Spring Boot Autoconfigurer for picturesafe-search
Starter for picturesafe-search based Spring Boot applications

Скачать picturesafe-search-spring-boot-autoconfigure

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

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

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot jar 2.2.7.RELEASE
org.springframework.boot : spring-boot-autoconfigure jar 2.2.7.RELEASE
org.springframework.boot : spring-boot-configuration-processor Необязательный jar 2.2.7.RELEASE
de.picturesafe.search : picturesafe-search jar 3.5.0

test (2)

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

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

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

picturesafe-search Spring Boot Starter

Spring Boot Starter for the picturesafe-search library.

Using the Starter

Create your Spring Boot application. In the pom.xml you need to add the following dependency:

<dependency>
    <groupId>de.picturesafe.search</groupId>
    <artifactId>picturesafe-search-spring-boot-starter</artifactId>
    <version>3.5.0-SNAPSHOT</version>
</dependency>

Spring Boot will configure everything required for picturesafe-search automatically.

You can now use the ElasticsearchService or the SingleIndexElasticsearchService as follows:

@SpringBootApplication
public class StarterDemoApplication implements CommandLineRunner {

    private static final Logger LOGGER = LoggerFactory.getLogger(StarterDemoApplication.class);

    @Autowired
    private SingleIndexElasticsearchService singleIndexElasticsearchService;

    public static void main(String[] args) {
        SpringApplication.run(StarterDemoApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        String elasticsearchServerVersion = singleIndexElasticsearchService
            .getElasticsearchInfo().getServerVersion();
        LOGGER.info("Elasticsearch version = {}", elasticsearchServerVersion);
    }
}

Spring Boot Starter Demo

Installation

The picturesafe-search Spring Boot Demo require a running Elasticsearch server from version 7.x.

  • Download and unpack the Elasticsearch official distribution.

  • Run bin/elasticsearch on Linux or macOS. Run bin\elasticsearch.bat on Windows.

Run Spring Boot Demo

Clone Maven project and run app from IDE or command line within folder picturesafe-search-spring-boot-demo.

Maven
mvn spring-boot:run

The application.properties correspond to the elasticsearch.template.properties of picturesafe-search.

For more information, please see following documentation.

de.picturesafe.search

Apollon GmbH + Co. KG

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

Версия
3.5.2
3.5.1
3.5.0
3.4.1