SpringCloud集成 报错 An attempt was made to call a method that does not exist. The attempt was made from the following location:
详细报错结果如下:原因是SpringCloud和spring-boot-starter-parent的版本配置不搭配解决方法
Greenwich 2.1.x(可用2.1.4.RELEASE)Finchley 2.0.x(可用2.0.5.RELEASE)Edgware 1.5.xDalston 1.5.x
例如我的版本如下:
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.0.7.RELEASE</version></parent><dependencyManagement><dependencies><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-dependencies</artifactId><!--Spring Cloud的版本--><version>Finchley.SR2</version><type>pom</type><scope>import</scope></dependency></dependencies></dependencyManagement>