厉害了!Spring Boot 2.5正式发布

基于Spring Boot 2.4的变动
Sql脚本初始化数据源
schema.sql和data.sql编写脚本的基础方法。spring.datasource.*中和数据源初始化相关的配置已经过时,会被spring.sql.init.*系列配置所代替,而且新的配置对R2DBC也适用。需要注意的是目前不支持分离许可证(separate credentials),目的是降低复杂度并同Flyway和Liquibase保持一致性兼容。当然你可以通过自行实现org.springframework.jdbc.datasource.init.DataSourceInitializer
环境变量前缀
SystemEnvironmentPropertySource指定前缀,以便您可以在同一环境中运行多个不同的Spring Boot应用程序时使用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 )绑定现在也支持buildpacks构建器了。度量指标
依赖升级
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标记的API。文档优化
其它
评论
