编程知识 cdmana.com

Spring cloud 2020.0.0 officially released, a new subversive version!

Spring Cloud 2020.0.0

you 're right ,Spring Cloud 2020.0.0 Officially released :

thank Java Technology Group notification , The official account of the group Java Technology stack background reply :wx, Being used Spring Cloud Do you find it strange that , Well used London underground station , How did the version number suddenly become 2020.0.0 了 ?

you 're right , from Spring Cloud 2020.0.0-M1 Start ,Spring Cloud Abolished the naming of London underground station in England , So we use a brand new " Calendar " Version naming .

The details of specific changes will not be introduced here , I shared it months ago :

Spring Cloud 2020 Great changes in the edition , A better way to name !

Why this time Spring Cloud 2020.0.0 The version is in time for 2020 The last few days of , I can only say :

2020 Time is really running out , If we don't release it, we can only call it :Spring Cloud 2021.0.0

therefore , I guess ,Spring Cloud The government also doesn't want to see the new version's name change before it's released , After all 2020 Days are running out , Last week ..

Technology update is too fast ..

Maven The central warehouse is available :

Let's go back to the previous version :Hoxton.SR9

Look at the yellow border above , There's a new version of this project :2020.0.0, A new era of editions has opened up !

Come on , Use with pleasure Spring Cloud Well !

newest Maven Rely on management :

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2020.0.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
<dependencies>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-config</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
    </dependency>
    ...
</dependencies>

newest Gradle Rely on management :

buildscript {
  dependencies {
    classpath "io.spring.gradle:dependency-management-plugin:1.0.10.RELEASE"
  }
}

apply plugin: "io.spring.dependency-management"

dependencyManagement {
  imports {
    mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2020.0.0'
  }
}

dependencies {
  compile 'org.springframework.cloud:spring-cloud-starter-config'
  compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
  //...
}

2020 Important version changes

The stack length below is right Spring Cloud 2020.0.0 A brief summary of the release notes , To help you decide whether to upgrade .

1、Spring Boot Dependent version

This version depends on Spring Boot 2.4.1, The latest dependencies are as follows :

Release Train Boot Version
2020.0.x aka Ilford 2.4.x
Hoxton 2.2.x, 2.3.x (Starting with SR5)
Greenwich 2.1.x
Finchley 2.0.x
Edgware 1.5.x
Dalston 1.5.x

Those who need to be upgraded have a good look ~

Reference reading :Spring Boot 2.4 Official release , A major adjustment

Spring Boot The basic course is here :

https://github.com/javastacks/spring-boot-best-practice

2、 Repair a lot of bug

Normal maintenance , This version fixes a lot of bug.

Reference resources :

https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2020.0-Release-Notes#known-issues

3、 project 、 Module removal

1)spring-cloud-netflix Module removal

The following module has been removed from spring-cloud-netflix Removed from :

  • spring-cloud-netflix-archaius
  • spring-cloud-netflix-concurrency-limits
  • spring-cloud-netflix-core
  • spring-cloud-netflix-dependencies
  • spring-cloud-netflix-hystrix
  • spring-cloud-netflix-hystrix-contract
  • spring-cloud-netflix-hystrix-dashboard
  • spring-cloud-netflix-hystrix-stream
  • spring-cloud-netflix-ribbon
  • spring-cloud-netflix-sidecar
  • spring-cloud-netflix-turbine
  • spring-cloud-netflix-turbine-stream
  • spring-cloud-netflix-zuul
  • spring-cloud-starter-netflix-archaius
  • spring-cloud-starter-netflix-hystrix
  • spring-cloud-starter-netflix-hystrix-dashboard
  • spring-cloud-starter-netflix-ribbon
  • spring-cloud-starter-netflix-turbine
  • spring-cloud-starter-netflix-turbine-stream
  • spring-cloud-starter-netflix-zuul

2) Removed right ribbon、hystrix and zuul Support for

The pair has been removed from the published project ribbon、hystrix and zuul Support for .

hystrix and zuul Has been abolished , I had a official account before. Java Technology stack shared , however ,ribbon It's all removed ??

Check the following information , Find out spring-cloud-loadbalancer Has replaced ribbon!

3) Removed Spring Cloud Security project

Spring Cloud Security This item has been deleted , The code has been moved to Spring Cloud Each subproject is in the middle .

4、Spring Cloud Commons

Be careful :Bootstrap Has been changed to the default disabled state .

Config Client, Consul, Vault, and Zookeeper Added Spring Boot 2.4 New ways to import configuration in , Immediate pass spring.config.import Parameter import configuration , Please refer to the corresponding document for details of specific use .

Reference reading :Spring Boot 2.4.0 Major adjustment of configuration file

If you want to go back to the old version bootstrap function , You can turn it on in two ways :

1) Open by parameter

spring.cloud.bootstrap.enabled=true

perhaps :

spring.config.use-legacy-processing=true

This parameter needs to be set in environment variable or system level parameter , Or command line parameters .

2) Open by adding dependency

Add this dependency :

org.springframework.cloud:spring-cloud-starter-bootstrap

  • Added Spring Cloud LoadBalancer Server statistics function ;
  • Generally, the security function has been terminated from Spring Cloud Security Item moved here ;
  • Increased use of spring.config.import Support for decryption ;

5、Spring Cloud Contract

It records how the Windows Cloning project .

6、Spring Cloud Kubernetes

1) Added based on Kubernetes Java Implementation of responsive client discovery for client ;

2) Added based on Kubernetes Java Client's Spring Cloud Loadbalancer Realization ;

7、Spring Cloud Openfeign

1) Support in Spring Cloud CircuitBreakers Middle package feign client ;

2)Spring Cloud OpenFeign Part of the security code , from Spring Cloud Security Moved to Spring Cloud OpenFeign;

3) Added LoadBalancer Statistical function ;

8、Spring Cloud Gateway

Added LoadBalancer Statistical function .

9、Spring Cloud Netflix

1) Several modules were removed , See page above 3 Point description ;

2) be based on Eureka Client Of RestTemplate Already supported TLS attribute ;

10、Spring Cloud Task

1) Added documentation for single step batch jobs ;

The following modules serve as 2020.0.0 Has been updated :

summary

Okay , This is the summary of this version , Please refer to the release notes below for more details :

https://spring.io/blog/2020/12/22/spring-cloud-2020-0-0-aka-ilford-is-available
https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2020.0-Release-Notes

in addition , Want to learn more Spring Cloud course , Please pay attention to the official account. Java Technology stack , Reply in the background :cloud, history Spring Cloud I've finished all the tutorials , Is dry .

I feel that this version update is quite big , Include Spring Boot The dependent version of has been upgraded to 2.4, There are also many projects and modules removed and changed , And no longer support it Ribbion/ Hystrix/ Zuul, wait ……

These changes are useful for Spring Cloud For users of , There is no doubt that it adds a lot of uncertainty , It increases the cost and risk of system upgrade , It's not easy to maintain and upgrade .

You use it Spring Cloud What version ?

Tell the truth , I can't update any more ……

Copyright notice : The official account is No. "Java Technology stack " original , It's not easy to be original , Reprint 、 Please indicate the source of this article , No plagiarism 、 Manuscript preparation , Please take care of yourself , Respect other people's labor achievements and intellectual property rights .

Recent hot article recommends :

1.Java 15 Official release , 14 A new feature , Refresh your mind !!

2. Finally, I got it through open source projects IntelliJ IDEA Activation code , It's delicious !

3. I use Java 8 Wrote a piece of logic , I can't understand it , You try ..

4. To hang up Tomcat ,Undertow It's very powerful !!

5.《Java Development Manual ( Song Mountain version )》 The latest release , Download it quickly !

I think it's good , Don't forget to like it + Forward !

版权声明
本文为[Java technology stack]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224152542988d.html

Scroll to Top