springboot版本号
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.13.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
对应的springcloud版本号
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Edgware.SR3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
若二者版本号不对应,则会引发启动报错等莫名奇妙的问题
此外,还需要引入依赖:
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>14.0.1</version>
</dependency>
若未引入此依赖,则引起运行时异常的问题
本文介绍如何正确配置SpringBoot 1.5.13.RELEASE与SpringCloud Edgware.SR3版本以避免启动错误,并强调了Guava依赖的重要性。
720

被折叠的 条评论
为什么被折叠?



