springBoot整合 Eureka 体验Spring Could报错:Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
错误:
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
经检查是jar包冲突问题
我SpringBoot用的 2.2.0 不行
与SpringCloud 版本冲突
<!--声明版本号--><properties><java.version>1.8</java.version><spring-cloud.version>Greenwich.SR2</spring-cloud.version></properties>
解决办法:
将SpringBoot版本改至 2.1.8即可
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.1.8.RELEASE</version><relativePath/> <!-- lookup parent from repository --></parent>