美文网首页
org.springframework.boot.builder

org.springframework.boot.builder

作者: zhuyuansj | 来源:发表于2019-05-27 11:13 被阅读0次

org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang

由于项目的springcloud eureka用的是1.4的版本,虽然说以后eureka会闭源,很多公司开始用console和zk来做注册中心.但是为了尽量做小的改动升级现在的版本。所以采用了以下措施。另外加入了getway的网关也需要springcloud2.0的版本,因此升级在所难免。

一.Eureka

一、前提
升级前 => 升级后
Spring Boot 1.5.x => Spring Boot 2.0.4.RELEASE

Spring Cloud Edgware SR3 => Spring Cloud Finchley.SR1

1.1ureka Server marven 依赖更新

升级前:

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-eureka-server</artifactId>
        </dependency>

升级后:

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
        </dependency>

1.2、Eureka Client

因为配置中心需要作为服务注册到注册中心,所以需要升级 Eureka Client,其他依赖没有变动。

Eureka Client 依赖更新
升级前:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>

升级后:

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>

原文参考:001-Spring Cloud Edgware.SR3 升级最新 Finchley.SR1,spring boot 1.5.9.RELEASE 升级2.0.4.RELEASE注意问题点
]

相关文章

网友评论

      本文标题:org.springframework.boot.builder

      本文链接:https://www.haomeiwen.com/subject/nqvctctx.html