厲害了!Spring Boot 2.5正式發(fā)布

基于Spring Boot 2.4的變動(dòng)
Sql腳本初始化數(shù)據(jù)源
schema.sql和data.sql編寫腳本的基礎(chǔ)方法。spring.datasource.*中和數(shù)據(jù)源初始化相關(guān)的配置已經(jīng)過時(shí),會(huì)被spring.sql.init.*系列配置所代替,而且新的配置對(duì)R2DBC也適用。需要注意的是目前不支持分離許可證(separate credentials),目的是降低復(fù)雜度并同Flyway和Liquibase保持一致性兼容。當(dāng)然你可以通過自行實(shí)現(xiàn)org.springframework.jdbc.datasource.init.DataSourceInitializer
環(huán)境變量前綴
SystemEnvironmentPropertySource指定前綴,以便您可以在同一環(huán)境中運(yùn)行多個(gè)不同的Spring Boot應(yīng)用程序時(shí)使用SpringApplication.setEnvironmentPrefix("PRIFIX")
SpringApplication application = new SpringApplication(MyApp.class);
application.setEnvironmentPrefix("myapp");
application.run(args);
OS,就可以聲明為MYAPP_OS、MYAPP-OS或者MYAPP.OS。application.yaml中的配置。HTTP/2支持
server.http2.enabled為 true,server.ssl.enabled為false即可生效。Docker鏡像
War分層鏡像
buildpacks
tar.gz文件中。卷(volume )綁定現(xiàn)在也支持buildpacks構(gòu)建器了。度量指標(biāo)
依賴升級(jí)
Spring Data 2021.0
Spring Integration 5.5
Spring Security 5.5
Spring Session 2021.0
Spring HATEOAS 1.3
Spring Kafka 2.7.0
過期依賴移除
@Deprecated標(biāo)記的API。文檔優(yōu)化
其它
評(píng)論
圖片
表情
