作者 王勇

添加es的依赖,并将boot的依赖上升至2.2.1,cloud的依赖上升为Hoxton.RELEASE;springboot2.2.1默认的es版本是6.8.4

正在显示 1 个修改的文件 包含 21 行增加9 行删除
@@ -2,6 +2,12 @@ @@ -2,6 +2,12 @@
2 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" 2 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion> 4 <modelVersion>4.0.0</modelVersion>
  5 + <parent>
  6 + <groupId>org.springframework.boot</groupId>
  7 + <artifactId>spring-boot-starter-parent</artifactId>
  8 + <version>2.2.1.RELEASE</version>
  9 + <relativePath/>
  10 + </parent>
5 <groupId>com.sunyo.wlpt.message.bus.service</groupId> 11 <groupId>com.sunyo.wlpt.message.bus.service</groupId>
6 <artifactId>message_bus_service</artifactId> 12 <artifactId>message_bus_service</artifactId>
7 <version>1.0.0</version> 13 <version>1.0.0</version>
@@ -12,8 +18,8 @@ @@ -12,8 +18,8 @@
12 <java.version>1.8</java.version> 18 <java.version>1.8</java.version>
13 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 19 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 20 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
15 - <spring-boot.version>2.1.7.RELEASE</spring-boot.version>  
16 - <spring-cloud.version>Greenwich.SR2</spring-cloud.version> 21 + <spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
  22 +<!-- <elasticsearch.version>6.8.0</elasticsearch.version>-->
17 </properties> 23 </properties>
18 24
19 <dependencies> 25 <dependencies>
@@ -35,6 +41,12 @@ @@ -35,6 +41,12 @@
35 <artifactId>spring-boot-starter-amqp</artifactId> 41 <artifactId>spring-boot-starter-amqp</artifactId>
36 <version>2.1.8.RELEASE</version> 42 <version>2.1.8.RELEASE</version>
37 </dependency> 43 </dependency>
  44 +
  45 + <dependency>
  46 + <groupId>org.springframework.boot</groupId>
  47 + <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
  48 + </dependency>
  49 +
38 <!-- SpringBoot end --> 50 <!-- SpringBoot end -->
39 <!-- SpringCloud start --> 51 <!-- SpringCloud start -->
40 <dependency> 52 <dependency>
@@ -155,13 +167,13 @@ @@ -155,13 +167,13 @@
155 167
156 <dependencyManagement> 168 <dependencyManagement>
157 <dependencies> 169 <dependencies>
158 - <dependency>  
159 - <groupId>org.springframework.boot</groupId>  
160 - <artifactId>spring-boot-dependencies</artifactId>  
161 - <version>${spring-boot.version}</version>  
162 - <type>pom</type>  
163 - <scope>import</scope>  
164 - </dependency> 170 +<!-- <dependency>-->
  171 +<!-- <groupId>org.springframework.boot</groupId>-->
  172 +<!-- <artifactId>spring-boot-dependencies</artifactId>-->
  173 +<!-- <version>${spring-boot.version}</version>-->
  174 +<!-- <type>pom</type>-->
  175 +<!-- <scope>import</scope>-->
  176 +<!-- </dependency>-->
165 <dependency> 177 <dependency>
166 <groupId>org.springframework.cloud</groupId> 178 <groupId>org.springframework.cloud</groupId>
167 <artifactId>spring-cloud-dependencies</artifactId> 179 <artifactId>spring-cloud-dependencies</artifactId>