Spring Boot 2.1.RELEASE?
參考鏈接:https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1-Release-Notes#new-and-noteworthy
Spring Boot 2.1 Release Notes
Upgrading from Spring Boot 2.0
Deprecations from Spring Boot 2.0
在Spring Boot 2.0中棄用的類(lèi)、方法和屬性已經(jīng)在這個(gè)版本中刪除了。請(qǐng)確保在升級(jí)之前沒(méi)有調(diào)用已棄用的方法。
Spring Framework 5.1
Spring Boot 2.1 使用 Spring Framework 5.1. 請(qǐng)參考它的升級(jí)指南-upgrade guide,了解任何可能影響您的應(yīng)用程序的更改。
Bean Overriding
默認(rèn)情況下禁用了Bean重寫(xiě),以防止Bean被意外地重寫(xiě)。如果依賴(lài)于重寫(xiě),則需要設(shè)置spring.main.allow-bean-definition-overriding=true.
Auto-Configuration Exclusion
排除現(xiàn)在被一致地應(yīng)用,而不僅僅是局部地應(yīng)用。這適用于在@EnableAutoConfiguration,?@SpringBootApplication,?@ImportAutoConfiguration或?spring.autoconfigure.exclude屬性。
Actuator 'info' and 'health' Endpoint Security
如果spring-security在沒(méi)有任何安全配置的類(lèi)路徑上,那么/info和/health現(xiàn)在將公開(kāi)以保持一致性。如果在類(lèi)路徑上有spring-security,但不提供任何安全配置,則需要顯式保護(hù)它們。
Servlet Path
The?server.servlet.path?property has moved to?spring.mvc.servlet.path. If you were relying on that property programmatically to know the path of the?DispatcherServlet?please use?DispatcherServletPath?instead.
server.servlet.path?屬性已移至spring.mvc.servlet.path。如果您通過(guò)編程的方式依賴(lài)該屬性來(lái)了解DispatcherServlet的路徑,請(qǐng)使用DispatcherServletPath。
@WebMvcTest and @WebFluxTest Security Configuration
用戶(hù)配置現(xiàn)在自動(dòng)包含在web片測(cè)試中。@WebMvcTest查找WebSecurityConfigurer bean,而@WebFluxTest查找ServerHttpSecurity bean。
Logging Refinements
Spring Framework 5.1在使用web應(yīng)用程序(Spring MVC或Spring WebFlux)時(shí)重新訪問(wèn)了調(diào)試日志輸出。如果你試圖調(diào)試一個(gè)應(yīng)用程序,并且你想恢復(fù)Spring Boot 2.0風(fēng)格的日志記錄,你應(yīng)該在application.properties中添加以下內(nèi)容:
logging.level.web=debug
您可能還想設(shè)置spring.http.log-request-details為true,記錄實(shí)際請(qǐng)求的詳細(xì)信息。默認(rèn)情況下,此屬性為false,因?yàn)樗赡鼙┞睹舾行畔ⅰ?/p>
Narayana JTA Support
為了支持與Narayana版本更加一致的官方支持,Narayana的支持已經(jīng)被刪除。如果你使用的是spring-boot-starter-jta-narayana,新的坐標(biāo)如下:
? ? me.snowdrop? ? narayana-spring-boot-starter? ? 2.0.1

請(qǐng)參考?the documentation?以了解更多細(xì)節(jié)。
ActiveMQ Pooling
If you were using?activemq-pool, support has been removed in this release in favor of?pooled-jms?that offers the same features while being JMS 2.0 compliant. You can update your build as follows:
如果您正在使用activemq-pool,那么在這個(gè)版本中已經(jīng)刪除了對(duì)pooled-jms的支持,pooled-jms提供了相同的特性,同時(shí)兼容JMS 2.0。你可以更新你的構(gòu)建如下:

HttpPutFormContentFilter
HttpPutFormContentFilter?has been deprecated in favor of?FormContentFilter. As a result the?spring.mvc.formcontent.putfilter.enabled?property is no longer defined. If you were using this feature, please update to?spring.mvc.formcontent.filter.enabled.
HttpPutFormContentFilter已經(jīng)被棄用,取而代之的是FormContentFilter。?spring.mvc.formcontent.putfilter.enabled 結(jié)果屬性不在被定義。如果你正在使用這個(gè)特性,請(qǐng)更新到spring.mvc.formcontent.filter.enabled。
OAuth2 Client Configuration
The structure of the?spring.security.oauth2.client.registration?has been reworked in a single tree rather than having an?authorizationcode?and?clientcredentials?sub namespace.
spring.security.oauth2.client.registration?的結(jié)構(gòu)已經(jīng)在在單個(gè)樹(shù)中重新注冊(cè),而不是使用authorizationcode和clientcredentials子名稱(chēng)空間。
Micrometer 'all' SLA Handling
management.metrics.distribution.sla錯(cuò)誤地描述了一個(gè)all meter ID可以用于為所有度量設(shè)置SLA?。這個(gè)特性不能正確地實(shí)現(xiàn),因?yàn)閱挝豢赡軙?huì)根據(jù)儀表類(lèi)型不同而不同。
InfluxDB HttpClient Customization
在前面,聲明OkHttpClient.Builder bean足以定制InfluxDB使用的客戶(hù)端。要確保隔離此類(lèi)自定義,請(qǐng)定義一個(gè)InfluxDbOkHttpClientBuilderProvider?bean。
Maven Plugin
finalName屬性不再是可定制的,以與標(biāo)準(zhǔn)Maven插件的行為保持一致。
如果您正在定制repackage目標(biāo),那么主執(zhí)行現(xiàn)在有一個(gè)必須指定的repackage id,參考the updated sample.。
Spring Version POM Property
在spring-boot-dependencies POM中定義的spring.version屬性已被重命名。要覆蓋Spring Framework版本,現(xiàn)在應(yīng)該使用?spring-framework.version屬性。除非絕對(duì)必要,我們通常建議您堅(jiān)持使用托管框架版本。
Removal of 'spring.provides' Files
starter?可以聲明META-INF/spring.provides,以便IDE能夠找出它所提供的依賴(lài)項(xiàng)。掃描starter POM以尋找它聲明的直接依賴(lài)項(xiàng)應(yīng)該足以作為一種指示。如果您是第三方啟動(dòng)器的負(fù)責(zé)人,并且聲明了這個(gè)文件,那么可以刪除它。
Thymeleaf Spring Security Extras
Thymeleaf的Spring Security Extras模塊的依賴(lài)管理和自動(dòng)配置已經(jīng)從?thymeleaf-extras-springsecurity4 切換到?thymeleaf-extras-springsecurity5。如果您正在使用模塊,則應(yīng)該更新您的pom.xml或build.gradle依賴(lài)thymleaf -extras-springsecurity5。
Json Simple
不再提供json-simple的依賴(lài)項(xiàng)管理,使用它的JsonParser實(shí)現(xiàn)也已刪除。
Jersey 1
Jersey 1 不再支持。請(qǐng)升級(jí)到 Jersey 2.
Hibernate EhCache Support
如果你使用hibernate-ehcache來(lái)使用EhCache 2作為Hibernate的二級(jí)緩存提供商,它在Hibernate 5.3中已經(jīng)棄用。
Endpoint ID names
如果您已經(jīng)開(kāi)發(fā)了自己的執(zhí)行器@Endpoint bean,那么您應(yīng)該確保它們遵循Spring Boot 2.1中引入的更嚴(yán)格的命名規(guī)則。具體來(lái)說(shuō),IDs應(yīng)該是只包含字母數(shù)字的,并且必須以字母開(kāi)頭(有關(guān)完整細(xì)節(jié),請(qǐng)參閱EndpointId類(lèi)文檔)。
如果你用 -?or?.?字符 Spring Boot 2.1將記錄一個(gè)警告并要求您遷移到正確的格式。
Lombok
Spring Boot 2.1已經(jīng)升級(jí)到Lombok?從1.16.x 到 1.18.x。在1.18中,默認(rèn)情況下Lombok將不再生成私有的、無(wú)參數(shù)的構(gòu)造函數(shù)。在?lombok.config?configuration file?中,可以通過(guò)設(shè)置 lombok.noArgsConstructor.extraPrivate=true 啟動(dòng)它。有關(guān)Lombok更改的更多信息,請(qǐng)參閱其更改日志-changelog。
Java Persistence API dependency
作為升級(jí)到Hibernate 5.3的一部分,托管Java持久化API依賴(lài)關(guān)系已經(jīng)從org.hibernate.javax.persistence:hibernate-jpa-2.1-api更改為?javax.persistence:javax.persistence-api。如果您正在使用spring-boot-starter-data-jpa或通過(guò)Hibernate傳遞依賴(lài)于API,那么您將不受此更改的影響。
JpaProperties
特定于hibernate的屬性已經(jīng)從JpaProperties移到一個(gè)名為HibernateProperties的單獨(dú)類(lèi)中。如果你正在使用JpaProperties. getHibernateProperties(HibernateSettings),你現(xiàn)在應(yīng)該同時(shí)注入HibernateProperties和JpaProperties來(lái)確定屬性:

Consistent max HTTP header size across all embedded web servers
The default max HTTP header size is now consistent across the four supported embedded web servers (Jetty, Netty, Tomcat, and Undertow) and is 8KB. The size can be customized using the?server.max-http-header-size?property.
默認(rèn)的最大HTTP報(bào)頭大小現(xiàn)在在四個(gè)支持的嵌入式web服務(wù)器(Jetty、Netty、Tomcat和Undertow)中是一致的,是8KB??梢允褂胹erver.max-http-header-size屬性。
New and Noteworthy
Tip Check?the configuration changelog?查看配置更改的完整概述。
Third-party Library Upgrades
Spring Boot 2.1構(gòu)建于Spring Framework 5.1之上,并且需要Spring Framework 5.1。
我們已經(jīng)盡可能地升級(jí)到其他第三方j(luò)ar的最新穩(wěn)定版本。這個(gè)版本中一些值得注意的依賴(lài)升級(jí)包括:
Tomcat 9
Undertow 2
Hibernate 5.3
JUnit 5.2
Micrometer 1.1
Java 11 Support
Spring Boot 2.1仍然與Java 8兼容,但現(xiàn)在也支持Java 11。我們配置了持續(xù)集成,以針對(duì)最新的Java 11版本構(gòu)建和測(cè)試Spring Boot。
DataSize Support
如果一個(gè)屬性需要以字節(jié)或類(lèi)似的方便單位表示大小,它可以公開(kāi)org.springframework.util.unit.DataSize屬性。與我們?cè)赟pring Boot 2.0中引入的持續(xù)時(shí)間支持類(lèi)似,數(shù)據(jù)大小支持一種簡(jiǎn)單的格式(即10MB?for 10 兆字節(jié))和元數(shù)據(jù)支持。所有相關(guān)配置屬性都已更新,以使用新類(lèi)型。
Context ApplicationConversionService Support
ApplicationConversionService?現(xiàn)在默認(rèn)注冊(cè)到SpringApplication創(chuàng)建的環(huán)境和BeanFactory中。這允許你直接使用應(yīng)用程序轉(zhuǎn)換器和Spring Framework?的核心項(xiàng)目,比如@Value注釋:

Profile Expression
Profile matching has been improved to support?an expression format. For instance?production & (us-east | eu-central)?indicates a match if the?production?profile is active?and?either the?us-eas to reu-central?profiles are active.
配置文件匹配已得到改進(jìn),以支持一種表達(dá)式格式-?an expression format。例如,production & (us-east | eu-central) 表示匹配,如果production 配置文件是激活的,并且 us-east 和??eu-central 配置文件是激活的。
配置文件表達(dá)式可以使用如下:
Enable componets using?@Profile
Load?multi-profile YAML Documents
Enable Logback configuration using?<springProfile>
Task Execution
Spring Boot現(xiàn)在為T(mén)hreadPoolTaskExecutor提供自動(dòng)配置。如果你正在使用@EnableAsync,你的自定義TaskExecutor可以被刪除,以便從spring.task.execution?namespace中進(jìn)行定制。使用TaskExecutorBuilder可以輕松創(chuàng)建自定義ThreadPoolTaskExecutor。
Task Scheduling
與新的任務(wù)執(zhí)行支持類(lèi)似,當(dāng)指定@EnableScheduling時(shí),Spring Boot自動(dòng)配置ThreadPoolTaskScheduler。任務(wù)調(diào)度程序可以使用spring.task.scheduling?進(jìn)行定制。默認(rèn)情況下,TaskSchedulerBuilder也是可用的。
Logging Groups
Logger groups can be defined to allow related loggers to be configured in one go. For example, you could declare a?tomcat?group that allows you to configure?org.apache.catalina,?org.apache.coyote?and?org.apache.tomcat?loggers with a single key:
可以定義記錄器組,以允許一次性配置相關(guān)的記錄器。例如,您可以聲明一個(gè)允許配置具有單獨(dú)key的org.apache.catalina,?org.apache.coyote和org.apache.tomcat?日志記錄器的tomcat組。

方便的web和sql組是開(kāi)箱即用的。See the?reference guide?for details.
Maven Plugin
指定參數(shù)已經(jīng)改進(jìn)為系統(tǒng)屬性(system properties)和環(huán)境變量(environment variables)的專(zhuān)用選項(xiàng)。也可以重新打包并替換分類(lèi)工件,查看分類(lèi)器屬性的更新文檔-the updated documentation。
Bootstrap mode for JPA setup
Spring Data Lovelace introduces a 'bootstrap mode' for the repositories. Spring Boot exposes a property that can be set to control the boostrap mode of JPA repositories. For instance, to defer initialization of JPA repositories, simply add the following to your configuration:
Spring Data Lovelace為存儲(chǔ)庫(kù)引入了一種“bootstrap mode”。Spring Boot公開(kāi)了一個(gè)屬性,可以設(shè)置該屬性來(lái)控制JPA存儲(chǔ)庫(kù)的引導(dǎo)模式。例如,要延遲JPA存儲(chǔ)庫(kù)的初始化,只需在配置中添加以下內(nèi)容:
spring.data.jpa.repositories.bootstrap-mode=deferred
當(dāng)將模式設(shè)置為延遲時(shí),JPA設(shè)置將在一個(gè)單獨(dú)的線程中進(jìn)行。
Kafka Streams Support
自動(dòng)配置現(xiàn)在提供給Kafa Streams當(dāng)一個(gè)org.apache.kafka:kafka-streams?依賴(lài)關(guān)系被聲明了。詳情請(qǐng)參閱更新的the updated Spring Boot documentation?文檔和Spring Kafka documentation?文檔。
Spring Data JDBC Support
Spring Data包括對(duì)JDBC的存儲(chǔ)庫(kù)支持,并將自動(dòng)為CrudRepository上的方法生成SQL。當(dāng)必要的依賴(lài)項(xiàng)在類(lèi)路徑上時(shí),Spring Boot將自動(dòng)配置Spring Data的JDBC存儲(chǔ)庫(kù)。它們可以通過(guò)spring-boot-starter-data-jdbc的單個(gè)依賴(lài)項(xiàng)添加到項(xiàng)目中。
關(guān)于Spring Data JDBC的完整細(xì)節(jié),請(qǐng)參閱reference documentation.
JMS ConnectionFactory Caching
The auto-configured?ConnectionFactory?is cached by default using?CachingConnectionFactory?until the pooling option is enabled or?spring.jms.cache.enabled?is set to?false. Pooling option has also been extended to Artemis (see?spring.jms.artemis.pool.*).
自動(dòng)配置的ConnectionFactory默認(rèn)使用CachingConnectionFactory進(jìn)行緩存,直到啟用 pooling?選項(xiàng)或spring.jms.cache.enabled?設(shè)置為false。pooling?選項(xiàng)也被擴(kuò)展到Artemis(參見(jiàn)spring.jms.artemis.pool.*)。
Elasticsearch REST Clients
作為Jest的替代選項(xiàng),RestClient和RestHighLevelClient的自動(dòng)配置提供了spring.elasticsearch.rest.*名稱(chēng)空間中的可配置選項(xiàng)。
JUnit 5
All?@…? annotations are meta-annotated with?@ExtendWith(SpringExtension.class)?so this redundant part of the setup can be removed if you’re using JUnit 5. Spring Boot also uses a?maven-surefire-plugin?version that does not require any custom setup to use JUnit 5.
所有的@…Test注解都是用?@ExtendWith(SpringExtension.class)進(jìn)行元注解的,所以如果您使用JUnit 5,就可以刪除這個(gè)多余的設(shè)置部分。Spring Boot還使用maven-surefire-plugin版本,使用JUnit 5不需要任何自定義設(shè)置。
Security
OAuth2 WebFlux Support
Support for WebFlux OAuth2 login has been added. OpenID Connect providers are easier to configure using an?issuer-uri?which is the URI that the it asserts as its Issuer Identifier.
添加支持WebFlux OAuth2登錄。使用?issuer-uri (其聲明為發(fā)布者標(biāo)識(shí)符的URI)更容易配置OpenID連接提供者。
OAuth2 resource server support
If you have?spring-security-oauth2-resource-server?on your classpath, Spring Boot can set up an OAuth2 Resource Server as long as a JWK Set URI is specified. For instance:
如果您的類(lèi)路徑上有spring-security-oauth2-resource-server,那么只要指定了JWK集URI, Spring Boot就可以設(shè)置OAuth2資源服務(wù)器。例如:

MVC和WebFlux應(yīng)用程序都支持這一點(diǎn)。
Non-web OAuth Applications
現(xiàn)在,編寫(xiě)非web OAuth應(yīng)用程序變得更容易了,因?yàn)槲覀兲峁┝艘粋€(gè)自動(dòng)配置的InMemoryReactiveClientRegistrationRepository bean,而不管應(yīng)用程序類(lèi)型是什么。如果您正在編寫(xiě)一個(gè)不使用嵌入式web服務(wù)器的應(yīng)用程序(例如CLI應(yīng)用程序),您現(xiàn)在可以直接注入并使用配置的注冊(cè)存儲(chǔ)庫(kù)。
Actuator Endpoints
Caches Endpoint
A new?/actuator/caches?endpoint lists the available?CacheManager?instances and their respective caches with basic metadata. Seethe APIfor more details.
一個(gè)新的/actuator/caches端點(diǎn)列出了可用的CacheManager實(shí)例和它們各自的帶有基本元數(shù)據(jù)的緩存。查看the API了解更多細(xì)節(jié)。
Spring Integration Graph Endpoint
If you are using Spring Integration, a graph representation of all Spring Integration components can be exposed at?/actuator/integrationgraph. Please seethe APIfor more details.
如果您正在使用Spring Integration,所有Spring Integration?組件的圖形表示可以在/actuator/integrationgraph處公開(kāi)。詳情請(qǐng)參閱the API。
Health Endpoint
現(xiàn)在可以使用HealthIndicatorRegistry bean在運(yùn)行時(shí)添加和刪除HealthIndicator。運(yùn)行狀況端點(diǎn)也得到了改進(jìn),可以在必要時(shí)查詢(xún)特定的指示器。例如?/actuator/health/db只執(zhí)行 “db” HealthIndicator。詳情請(qǐng)參閱the API。
Apache Cassandra的反應(yīng)性HealthIndicator?可用。
Micrometer
Common Micrometer Tags
通用標(biāo)簽可以聲明地應(yīng)用到所有儀表,如下面的例子所示:

上面的例子為所有值分別為us-east-1和prod的儀表添加了region和stack標(biāo)簽。
Auto-configuration Support For New Metrics
指標(biāo)覆蓋率得到了改進(jìn),包括:
Hibernate metrics
Spring Framework’s?WebClient
Kafka consumer metrics
Log4j2 metrics
Jetty server thread pool metrics
Server-side Jersey HTTP request metrics
Auto-configuration support for new registries
以下指標(biāo)注冊(cè)表現(xiàn)在在類(lèi)路徑上自動(dòng)配置:
AppOptics
Humio
KariosDB
此外,還添加了對(duì)Prometheus push gateway的支持。
Additional histogram configuration properties
新的management.metrics.distribution.maximum-expected-value.*和management.metrics.distribution.minimum-expected-value.*?屬性可用于控制每米(per-meter basis)的最大值和最小期望值。
Miscellaneous
除了上面列出的變化,還有很多小的調(diào)整和改進(jìn),包括:
Jackson 可見(jiàn)性(visibility)使用spring.jackson.visiblity.*進(jìn)行配置。
使用自動(dòng)配置的WebServiceTemplateBuilder更容易創(chuàng)建WebServiceTemplate。
當(dāng)使用Devtools時(shí),錯(cuò)誤頁(yè)面顯示堆棧跟蹤。
不再需要導(dǎo)出虛擬資源(ResourceConfig?)來(lái)啟用Jersey支持。
JNDI查找已經(jīng)得到改進(jìn),默認(rèn)情況下啟用了resourceRef。
可以通過(guò)RabbitRetryTemplateCustomizer定制Rabbit基礎(chǔ)設(shè)施使用的RetryTemplate。
默認(rèn)RabbitTemplate的接收隊(duì)列現(xiàn)在是可配置的
Tomcat的最大swallow大小現(xiàn)在可以通過(guò)屬性進(jìn)行配置
HTTP/2 with Reactor Netty Server 現(xiàn)在被支持。
Kafka自動(dòng)配置現(xiàn)在支持errorHandler、transactionManager和afterRollbackProcessor bean。
添加了對(duì)全局生成唯一?JMX ObjectNames的支持(而不是將此特性限制在執(zhí)行器端點(diǎn)(?Actuator Endpoints))
配置屬性元數(shù)據(jù)現(xiàn)在是有序的,棄用的項(xiàng)出現(xiàn)在最后。
關(guān)于Health.Builder?的withDetails方法現(xiàn)在也支持Map。
A reactive?ReactiveJwtDecoder?is now auto-configured when you have an issuer url defined.
當(dāng)您定義了一個(gè)?issuer url時(shí),一個(gè)響應(yīng)式ReactiveJwtDecoder現(xiàn)在是自動(dòng)配置的。
BackgroundPreinitializer可以被禁用,如果一個(gè)spring.backgroundpreinitializer.ignore 系統(tǒng)屬性被設(shè)置。
HiddenHttpMethodFilter?可以被啟動(dòng)通過(guò)使用屬性。
The JAP starter POM 現(xiàn)在開(kāi)箱即用在 Java 9+
MongoDB的自動(dòng)配置現(xiàn)在將退出當(dāng)?com.mongodb.client.MongoClient? bean被定義(以及更常見(jiàn)的com.mongodb.MongoClient)。
您現(xiàn)在可以選擇使用Jetty RS作為web客戶(hù)端的HTTP驅(qū)動(dòng)程序
在spring.quartz空間添加了幾個(gè)配置選項(xiàng)。
@ConditionalOnEnabledEndpoint可以使用在任何component (例如:僅端點(diǎn)需要的內(nèi)容,如果端點(diǎn)被禁用,則不應(yīng)該創(chuàng)建這些內(nèi)容).
@ConditionalOnMissingServletFilter?是值得獲得尊重在 FilterRegistration?beans當(dāng)測(cè)試是否缺少一個(gè)Filter?bean時(shí)。
@WebMvcTest也會(huì)自動(dòng)配置Spring Data REST(例如支持排序和可分頁(yè)請(qǐng)求參數(shù))。
切片測(cè)試(slice tests)現(xiàn)在都有一個(gè)properties屬性,可以在必要時(shí)一致地自定義環(huán)境。
支持添加了多個(gè)RestDocsMockMvcConfigurationCustomizer
安全配置現(xiàn)在應(yīng)用到WebTestClient。有關(guān)測(cè)試安全端點(diǎn)的更多信息,請(qǐng)參閱Spring Security參考文檔的相關(guān)部分-relevant section。
@WebFluxTest現(xiàn)在支持WebExceptionHandlers?
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)現(xiàn)在可以為管理服務(wù)器生成一個(gè)單獨(dú)的隨機(jī)端口。
自動(dòng)配置排除現(xiàn)在被一致地應(yīng)用。
Deprecations in Spring Boot 2.1
setConnectTimeout(int)和setReadTimeout(int)已被棄用,取而代之的是需要持續(xù)時(shí)間(Duration)的類(lèi)似方法。
使用int設(shè)置數(shù)據(jù)大小的方法已被棄用,并被采用DataSize的變量所取代。
management.endpoints.jmx.unique-names已被棄用,取而代之的是spring.jmx.unique-names。
@AutoConfigureMockMvc?上的安全屬性已被棄用,取而代之的是Spring Security’s?@WithMockUser 注解。
RestTemplateBuilder.basicAuthorization已被棄用,取而代之的是basicAuthentication。
REQUEST_WRAPPER_FILTER_MAX_ORDER?in?AbstractFilterRegistrationBean?and?FilterRegistrationBean 已經(jīng)被 OrderedFilter.REQUEST_WRAPPER_FILTER_MAX_ORDER代替。
Configuration Property Changes
spring.security.oauth2.client.registration.login.*.redirect-uri-template?屬性已被棄用,取而代之的是spring.security.oauth2.client.registration.login.*.redirect-uri。
spring.security.oauth2.resource.jwt.jwk.set-uri?屬性已經(jīng)改名為 spring.security.oauth2.resourceserver.jwt.jwk-set-uri。
spring.cloud.enabled 屬性已經(jīng)被刪除(如果需要禁用云連接器,請(qǐng)排除CloudServiceConnectorsAutoConfiguration)。
所有 management.metrics.binders.*.enabled?屬性被刪除,取而代之的是 直接排除自動(dòng)配置。