From 3c3c3203fc1d305c3b4e2a8d2e82f7ae3d616dc3 Mon Sep 17 00:00:00 2001 From: lsy <18332763730@163.com> Date: Sun, 24 Sep 2017 21:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0boot-starter-elasticsearch?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/META-INF/spring.factories | 2 ++ boot-starter-elasticsearch/src/main/resources/application.yml | 1 + pom.xml | 1 + 3 files changed, 4 insertions(+) create mode 100644 boot-starter-elasticsearch/src/main/resources/META-INF/spring.factories diff --git a/boot-starter-elasticsearch/src/main/resources/META-INF/spring.factories b/boot-starter-elasticsearch/src/main/resources/META-INF/spring.factories new file mode 100644 index 0000000..300d793 --- /dev/null +++ b/boot-starter-elasticsearch/src/main/resources/META-INF/spring.factories @@ -0,0 +1,2 @@ +# 自动化装配 +org.springframework.boot.autoconfigure.EnableAutoConfiguration=com.micro.fast.elasticsearch.BootStarterElasticsearchApplication \ No newline at end of file diff --git a/boot-starter-elasticsearch/src/main/resources/application.yml b/boot-starter-elasticsearch/src/main/resources/application.yml index b9eeee4..7a33d72 100644 --- a/boot-starter-elasticsearch/src/main/resources/application.yml +++ b/boot-starter-elasticsearch/src/main/resources/application.yml @@ -1,3 +1,4 @@ +# 示例配置 elasticsearch: hosts: - localhost:9300 diff --git a/pom.xml b/pom.xml index 0bc0b6c..4ed49a0 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,7 @@ 1.8 + boot-starter-elasticsearch common config-server eureka-server