spring boot 打包_SpringBoot2.3.0发布:支持Java14、打包Docker镜像 优雅关机配置

b64142b4e7cee801fb7ebd1747ef44cb.png

Spring Boot 2.3.0 已经发布,此版本主要更新内容包括:

依赖升级

新版本核心组件依赖升级

  • Spring Data Neumann
  • Spring HATEOAS 1.1
  • Spring Integration 5.3
  • Spring Kafka 2.5
  • Spring Security 5.3
  • Spring Session Dragonfruit

三方组件依赖

  • Cassandra Driver 4.6
  • Couchbase Client 3.0
  • Elasticsearch 7.6
  • Kafka 2.5
  • Micrometer 1.5
  • MongoDB 4.0

支持 Java 14

spring boot 2.3.0 支持 Java 14 ,同样对 Java 11 、Java 8 提供兼容

Docker 容器支持

spring boot 2.3.0 添加了部分功能用来帮助将Spring Boot 应用直接打包到 Docker 镜像。

  • 支持 Cloud Native Buildpacks 构建镜像
  • maven 插件 增加 spring-boot:build-image 、gradle增加bootBuildImage task 帮助快速构建镜像
  • 支持jar 分层,更好的优化打包镜像过程

优雅关机

目前内置的四个嵌入式Web服务器(Jetty,Reactor Netty,Tomcat和Undertow)以及响应式和基于Servlet的Web应用程序都支持优雅关机。

配置关机缓冲时间后,在关闭时,Web服务器将不再允许新请求,并且将等待缓冲时间以使活动请求完成。

服务可用性探针

spring boot 2.3.0 内置了应用可用性判断的功能,可以跟踪应用程序是否处理活动状态和是否准备好处理请求。详细可以参考:liveness-and-readiness-probes-with-spring-boot

其他变化

详细的发版日志可以参考Spring-Boot-2.3-Release-Notes 。也可以在此处找到在下一版本中删除的不推荐使用的类和方法的列表。

目前spring boot 已经有680多人参与提交了代码, 并且超过26000次 commit。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
It seems that you are encountering an error related to the Spring Boot starter parent dependency with version 2.3.0.RELEASE. This error usually occurs when the specified dependency cannot be found in the repository or when there is an issue with the dependency declaration. To resolve this issue, you can try a few troubleshooting steps: 1. Verify the dependency declaration: Double-check the spelling and syntax of the dependency declaration in your project's build file (e.g., pom.xml for Maven or build.gradle for Gradle). Ensure that the version number is correct and matches the available versions in the repository. 2. Clear local repository cache: Sometimes, the issue can be caused by a corrupted local repository cache. You can try deleting the contents of your local repository cache and re-downloading the dependencies. The location of the local repository varies depending on your build tool (e.g., ~/.m2/repository for Maven). 3. Check network connectivity: Ensure that your network connection is stable and capable of accessing the remote repository. Try pinging the repository URL or accessing it via a web browser to ensure that it is accessible. 4. Use a different version: If the specific version (2.3.0.RELEASE) is not available or causing issues, you can try using a different version of the Spring Boot starter parent dependency. Check the official Spring Boot documentation or repository for the available versions and select a suitable one. If none of these steps resolve the issue, please provide more details about your project setup, build tool, and any relevant error messages, so that I can assist you better.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值