300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > # SpringCloud集成 报错 An attempt was made to call a method that does not exist. The attempt was

# SpringCloud集成 报错 An attempt was made to call a method that does not exist. The attempt was

时间:2024-04-27 08:32:24

相关推荐

# SpringCloud集成 报错 An attempt was made to call a method that does not exist. The attempt was

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>

官网查看版本对应关系
版本需要对应

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。