From e895a1ba9693f359d310938badcc5d44aab50140 Mon Sep 17 00:00:00 2001
From: "Yangkai.Shen" <237497819@qq.com>
Date: Thu, 25 Oct 2018 22:23:20 +0800
Subject: [PATCH] =?UTF-8?q?:sparkles:=20spring-boot-demo-elasticsearch=20?=
=?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 1 +
spring-boot-demo-elasticsearch/.gitignore | 25 +++++++++
spring-boot-demo-elasticsearch/pom.xml | 53 +++++++++++++++++++
...pringBootDemoElasticsearchApplication.java | 12 +++++
.../src/main/resources/application.yml | 0
...BootDemoElasticsearchApplicationTests.java | 16 ++++++
6 files changed, 107 insertions(+)
create mode 100644 spring-boot-demo-elasticsearch/.gitignore
create mode 100644 spring-boot-demo-elasticsearch/pom.xml
create mode 100644 spring-boot-demo-elasticsearch/src/main/java/com/xkcoding/elasticsearch/SpringBootDemoElasticsearchApplication.java
create mode 100644 spring-boot-demo-elasticsearch/src/main/resources/application.yml
create mode 100644 spring-boot-demo-elasticsearch/src/test/java/com/xkcoding/elasticsearch/SpringBootDemoElasticsearchApplicationTests.java
diff --git a/pom.xml b/pom.xml
index c3ce4f5b1..2b44c91ba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,6 +24,7 @@
spring-boot-demo-orm-jpa
spring-boot-demo-upload
spring-boot-demo-neo4j
+ spring-boot-demo-elasticsearch
pom
diff --git a/spring-boot-demo-elasticsearch/.gitignore b/spring-boot-demo-elasticsearch/.gitignore
new file mode 100644
index 000000000..82eca336e
--- /dev/null
+++ b/spring-boot-demo-elasticsearch/.gitignore
@@ -0,0 +1,25 @@
+/target/
+!.mvn/wrapper/maven-wrapper.jar
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/build/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
\ No newline at end of file
diff --git a/spring-boot-demo-elasticsearch/pom.xml b/spring-boot-demo-elasticsearch/pom.xml
new file mode 100644
index 000000000..9a446dee2
--- /dev/null
+++ b/spring-boot-demo-elasticsearch/pom.xml
@@ -0,0 +1,53 @@
+
+
+ 4.0.0
+
+ spring-boot-demo-elasticsearch
+ 0.0.1-SNAPSHOT
+ jar
+
+ spring-boot-demo-elasticsearch
+ Demo project for Spring Boot
+
+
+ com.xkcoding
+ spring-boot-demo
+ 0.0.1-SNAPSHOT
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-data-elasticsearch
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+ spring-boot-demo-elasticsearch
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/spring-boot-demo-elasticsearch/src/main/java/com/xkcoding/elasticsearch/SpringBootDemoElasticsearchApplication.java b/spring-boot-demo-elasticsearch/src/main/java/com/xkcoding/elasticsearch/SpringBootDemoElasticsearchApplication.java
new file mode 100644
index 000000000..3532c7042
--- /dev/null
+++ b/spring-boot-demo-elasticsearch/src/main/java/com/xkcoding/elasticsearch/SpringBootDemoElasticsearchApplication.java
@@ -0,0 +1,12 @@
+package com.xkcoding.elasticsearch;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class SpringBootDemoElasticsearchApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(SpringBootDemoElasticsearchApplication.class, args);
+ }
+}
diff --git a/spring-boot-demo-elasticsearch/src/main/resources/application.yml b/spring-boot-demo-elasticsearch/src/main/resources/application.yml
new file mode 100644
index 000000000..e69de29bb
diff --git a/spring-boot-demo-elasticsearch/src/test/java/com/xkcoding/elasticsearch/SpringBootDemoElasticsearchApplicationTests.java b/spring-boot-demo-elasticsearch/src/test/java/com/xkcoding/elasticsearch/SpringBootDemoElasticsearchApplicationTests.java
new file mode 100644
index 000000000..32b3f7ecd
--- /dev/null
+++ b/spring-boot-demo-elasticsearch/src/test/java/com/xkcoding/elasticsearch/SpringBootDemoElasticsearchApplicationTests.java
@@ -0,0 +1,16 @@
+package com.xkcoding.elasticsearch;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class SpringBootDemoElasticsearchApplicationTests {
+
+ @Test
+ public void contextLoads() {
+ }
+
+}