Skip to content

AbaseCode/abasecode-base-es

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

AbaseCode open source project is a set of open source collection . Including the base package , toolkit , security package , token package , payment package , excel package and so on.

Open source project components to do out of the box, to facilitate more developers to save duplication of work, more focused on business logic code writing.

I am Jon, a developer who focuses on learning and spreading technical knowledge. I hope these toolkits can help you, and welcome any friends to join this open source project.

project homepage : https://abasecode.com

project github : https://github.com/abasecode

Jon's blog : https://jon.wiki

e-mail: ijonso123@gmail.com

About abasecode-base-es

This is an elasticsearch client, based on elasticsearch-java version 7.17.

Quick Start

Step 1: setting the pom.xml add dependency

<dependency>
    <groupId>com.abasecode.opencode</groupId>
    <artifactId>abasecode-base-es</artifactId>
    <version>1.0.0</version>
</dependency>

Step 2: setting application.yaml

like this:

app:
  elasticsearch:
    uris:
      - http://192.168.3.230:9200
    username: elastic
    password: Es789456

Notice: Uris can be configured with multiple uris. must start with http:// or https://.

Step 3: add annotation

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

Step 4: No more step. enjoy it.

About

elasticsearch client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages