Spring Boot Autoconfigurer for picturesafe-search

Starter for picturesafe-search based Spring Boot applications

License

License

Categories

Categories

Spring Boot Container Microservices Auto Application Layer Libs Code Generators config Configuration Search Business Logic Libraries
GroupId

GroupId

de.picturesafe.search
ArtifactId

ArtifactId

picturesafe-search-spring-boot-autoconfigure
Last Version

Last Version

3.5.2
Release Date

Release Date

Type

Type

jar
Description

Description

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

Download picturesafe-search-spring-boot-autoconfigure

How to add to project

<!-- 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"]

Dependencies

compile (4)

Group / Artifact Type Version
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 Optional jar 2.2.7.RELEASE
de.picturesafe.search : picturesafe-search jar 3.5.0

test (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.2.7.RELEASE
org.assertj : assertj-core jar 3.16.1

Project Modules

There are no modules declared in this project.

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

Versions

Version
3.5.2
3.5.1
3.5.0
3.4.1