首页 > 编程语言 > 详细

Spring Cloud常见错误

时间:2019-02-19 14:08:00      阅读:172      评论:0      收藏:0      [点我收藏+]

1.springboot和springcloud的版本匹配

不匹配会产生很多莫名其妙的报错,一般来说使用IDEA编译器可以自行选择版本,并会进行匹配,而Eclipse需要自己配置。

下面为springboot和springcloud的版本匹配:

    Cloud代号   Boot版本(train)    Boot版本(tested)                lifecycle
    Angle           1.2.x         incompatible with 1.3         EOL in July 2017
    Brixton         1.3.x         1.4.x                 2017-07卒
    Camden       1.4.x         1.5.x                                   -
    Dalston         1.5.x                   not expected 2.x                -
    Edgware       1.5.x         not expected 2.x                -
    Finchley        2.x                      not expected 1.5.x              -

 

2. springboot无法引入@enableeurekaserver:

    springboot与springcloud的支持版本不一致:

3. springcloud NoSuchMethodError

    springboot添加的springcloud模块,因为springboot版本太高导致报出这个错误

4. Parameter 3 of method eurekaRegistration 

    Parameter 3 of method eurekaRegistration in org.springframework.cloud.netflix

      在application.yml中添加配置文件:eureka.client.healthcheck.enabled=true

5.An incompatible version [1.2.12] of the APR

    An incompatible version [1.2.12] of the APR based Apache Tomcat Native library is installed...

    意思是:1.2.12的不满足了,需要去下载1.2.14版本。

    解决方法:替换一个tcnative-1.dll,此文件在C:\Windows\System32下。在JDK的bin目录下添加此文件。
       地址为:http://archive.apache.org/dist/tomcat/tomcat-connectors/native/ 。官网下载该文件:tomcat-native-1.1.24-win32-bin.zip文件。

Spring Cloud常见错误

原文:https://www.cnblogs.com/rainsakura/p/10400625.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!