Spring Cloud常见错误

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文件。

转载于:https://www.cnblogs.com/rainsakura/p/10400625.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值