Code Monkey home page Code Monkey logo

eshelloword-spring-boot-starter's Introduction

#基于bboss es spring boot starter的maven工程 本实例是一个基于bboss es spring boot starter的demo maven工程,可供spring boot项目集成bboss elasticsearch rest client参考

展示了通过spring boot管理单集群功能和管理多集群功能

单集群测试用例:eshelloword-spring-boot-starter\src\test\java\org\bboss\elasticsearchtest\springboot\BBossESStarterTestCase.java

  • 单集群演示功能测试用例,spring boot配置项以spring.elasticsearch.bboss开头
  • 对应的配置文件为application.properties文件

多集群测试用例:eshelloword-spring-boot-starter\src\test\java\org\bboss\elasticsearchtest\springboot\MultiBBossESStartersTestCase.java

  • 多集群演示功能测试用例,spring boot配置项以spring.elasticsearch.bboss.集群名称开头,例如:
  • spring.elasticsearch.bboss.default 默认es集群
  • spring.elasticsearch.bboss.logs logs es集群
  • 两个集群通过 org.bboss.elasticsearchtest.springboot.MultiESSTartConfigurer加载
  • 对应的配置文件为application-multi-datasource.properties文件

spring boot工程集成说明

快速集成和应用

非spring boot项目: https://my.oschina.net/bboss/blog/1801273

spring boot项目: https://my.oschina.net/bboss/blog/1835601

在spring booter项目中配置es参数

yml配置(默认配置) 单es集群配置,修改spring booter项目的配置文件:eshelloword-spring-boot-starter\src\main\resources\application.yml

多es集群配置,修改spring booter项目的配置文件:eshelloword-spring-boot-starter\src\main\resources\application-multi-datasource.yml

properties配置:如果需要采用properties配置,则将下面的两个文件拷贝到resources目录下面,把后缀.example去掉即可,记住yml和properties只能保留一个

单es集群配置,修改spring booter项目的配置文件:eshelloword-spring-boot-starter\src\main\resources\config\application.properties.example

多es集群配置,修改spring booter项目的配置文件:eshelloword-spring-boot-starter\src\main\resources\config\application-multi-datasource.properties.example

2.3 参考文档

https://my.oschina.net/bboss/blog/1556866

开发交流群

166471282

eshelloword-spring-boot-starter's People

Contributors

yin-bp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.