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