SpringCloud学习第三章-springcloud 父项目创建

父项目 pom.xml



         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    4.0.0

    org.hxm
    spring-cloud
    pom
    1.0-SNAPSHOT
    
        spring-eureka
        order-Server
        ribbon-server
        fegin-client
        fegin-client
    

    spring-cloud


    
        org.springframework.boot
        spring-boot-starter-parent
        2.0.3.RELEASE
        
    

    
        UTF-8
        UTF-8
        1.8
        Finchley.RELEASE
    

    
        
            org.springframework.boot
            spring-boot-starter-test
            test
        
    

    
        
            
                org.springframework.cloud
                spring-cloud-dependencies
                ${spring-cloud.version} 
                pom
                import
            
        
    

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    



注意:spring boot的版本和Springcluod版本需要对应,否则会出现错误,否则会出现

  1. java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.([Ljava/lang/Object;)V 这个错误
SpringCloud SpringBoot
Finchley 兼容Spring Boot 2.0.x,不兼容Spring Boot 1.5.x
Dalston和Edgware 兼容Spring Boot 1.5.x,不兼容Spring Boot 2.0.x
Camden 兼容Spring Boot 1.4.x,也兼容Spring Boot 1.5.x
Brixton 兼容Spring Boot 1.3.x,也兼容Spring Boot 1.4.x
Angel 兼容Spring Boot 1.2.x

转载于:https://www.cnblogs.com/JavaHxm/p/11408432.html

你可能感兴趣的:(SpringCloud学习第三章-springcloud 父项目创建)