picturesafe-search-starter-parent

Starter for picturesafe-search based Spring Boot applications

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы Search Прикладные библиотеки
Группа

Группа

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

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

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

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

3.5.2
Дата

Дата

Тип

Тип

pom
Описание

Описание

picturesafe-search-starter-parent
Starter for picturesafe-search based Spring Boot applications
Ссылка на сайт

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

https://github.com/picturesafe/picturesafe-search-starter
Система контроля версий

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

https://github.com/picturesafe/picturesafe-search-starter

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

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

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

Зависимости

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

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

  • picturesafe-search-spring-boot-autoconfigure
  • picturesafe-search-spring-boot-starter
  • picturesafe-search-spring-boot-demo

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