当前位置: 首页 > news >正文

在线音乐网站源码北京线上教学

在线音乐网站源码,北京线上教学,黄冈网站排名最高,吴中区做网站优质博文:IT-BLOG-CN 2.1.0新特性最低支持jdk8,支持tomcat9 对响应式编程的支持,spring-boot-starter-webflux starter POM可以快速开始使用Spring WebFlux,它由嵌入式Netty服务器支持 1.5.8 2.1.0/2.7.0/3.0.0 Configuration propertie…

优质博文:IT-BLOG-CN

2.1.0新特性最低支持jdk8,支持tomcat9

对响应式编程的支持,spring-boot-starter-webflux starter POM可以快速开始使用Spring WebFlux,它由嵌入式Netty服务器支持

1.5.8
在这里插入图片描述
2.1.0/2.7.0/3.0.0
在这里插入图片描述
Configuration properties migration

当升级到新功能版本时,一些配置可能会重命名或者被移除。SpringBoot提供一种方式去分析你应用的环境和在启动时打印诊断内容,还可以在运行时为你临时迁移属性。要启用该特性,添加下方的依赖到你的工程中:

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-properties-migrator</artifactId> <scope>runtime</scope>
</dependency>

Gradle Plugin 增强,支持kotlin。

Spring Boot 2.0 开始支持 GIF banners. See this project for an example.
在这里插入图片描述
2.7.0新特性自动配置注册文件,文件位置发生变更,之前都是写在下面 文件中的:META-INF/spring.factories>现在改名了:META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

为了向后兼容,META-INF/spring.factories 虽然现在被标识废弃了,但现在仍然可以使用,后续可能被彻底删除,建议使用新的规范。
在这里插入图片描述
支持 GraphQL,集成了对 GraphQL 的自动配置、指标支持等,Starter 名为:spring-boot-starter-graphql

由于 OkHttp 3 不再维护,Spring Boot 2.7 已升级到 OkHTTP 4。OkHttp 4向后兼容OkHttp 3

新注解(@AutoConfiguration) 新增了一个自动配置注解 @AutoConfiguration,用来代替之前的 @Configuration,用于标识新自动配置注册文件中的顶级自动配置类,由 @AutoConfiguration 注解嵌套、导入进来的其他配置类可以继续使用 @Configuration 注解。

另外,为方便起见,@AutoConfiguration 注解还支持 after, afterNames, before 和 beforeNames 属性进行自动配置排序,用于代替之前的 @AutoConfigureAfter 和 @AutoConfigureBefore 注解。

这个注解可以说更加细分了吧,自动配置专用注解,用专门的注解来干专门的事,这样也可以用来区分用 @Configuration 标识的普通配置类。

2.6.0开始禁止循环引用: 如果您的应用程序由于 BeanCurrentlyInCreationException 而无法启动,强烈建议您更新配置以打破依赖循环。

如果您无法这样做,可以通过将 spring.main.allow-circular-references 设置为 true 或在 SpringApplication 和 SpringApplicationBuilder 上使用新的 setter 方法来再次允许循环引用

3.0.0新特性

spring6

Java 17是Spring Boot 3.0的最低版本要求,spring6 tomcat10也是springboot3的最低版本要求

Spring Boot 3.0的一个重要变化,即从Java EE迁移至javarta.包名由javax变成javarta。

oracle在19年把javax捐给eclipse基金会,但不允许使用javax的命名空间,所以eclipse才继续发展成现在的javaee标准Jakarta EE。

Spring Boot 3.0 应用程序现在可以直接转换为 GraalVM 原生镜像(无需本地安装GraalVM环境),这可以提供显著的内存和启动性能改进。

可参考文章:Spring Native

GraalVM与Spring Native初体验

native-image

mvn -Pnative spring-boot:build-image

docker run --rm -p 8080:8080 docker.io/library/myproject:0.0.1-SNAPSHOT

spring-native打包镜像启动速度
在这里插入图片描述
JVM启动速度
在这里插入图片描述

文件大小:spring-native打包镜像占95.55MB,JVM占28.9MB。

Auto-configuration Files

Spring Boot 2.7 引入了一个新的 META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports 文件,用于注册自动配置,同时保持与 spring.factories 中注册的向后兼容性。在此版本中,已删除对在 spring.factories 中注册自动配置的支持,以支持导入文件。

Spring官方在(Spring Boot3.0,Spring Framework6.0、Tomcat10.1.6-M16以上兼容支持JDK19) 实验虚拟线程
在这里插入图片描述
3.1新特性

1、最低环境要求
Spring Boot 3.0 的发布,其最低要求 Java 17,并向上兼容支持 Java 19,Spring Boot 3.1 可以支持 Java 20 了,因为前段时间 Java 20 发布了。

对 Java 开发环境的要求对比表:

Spring BootJDKSpringMavenGradle
3.1.017 ~ 206.0.9+3.6.3+7.5+,8.x
3.0.017~196.0.2+3.5+7.5+
2.7.128~205.3.27+3.5+6.8.x,6.9.x,7.x,8.x

2、移除 HttpClient 4

因为 Spring 6 删除了 RestTemplate 对 Apache HttpClient 4 的支持,取而代之的则是 Apache HttpClient 5。

而 Spring Boot 3.0 又同时包含了 HttpClient 4 和 HttpClient 5 两个依赖的管理,如果同时管理这两个版本,有的人可能会继续使用 HttpClient 4,应用程序在使用 RestTemplate 时可能会有潜在的错误,导致诊断困难。

所以,Spring Boot 3.1 移除了 HttpClient 4 的依赖管理,转而逼迫用户强制使用 HttpClient 5,大家有依赖 HttpClient 4 的升级时需要注意了。

3、Servlet 和 Filter 注册失败时抛异常

大家知道,Spring Boot 注册 Servlet 和 Filter 时用的 ServletRegistrationBean 和 FilterRegistrationBean 这两个类,之前注册失败时是记录 warn 级别的日志,现在则是直接抛出 IllegalStateException 异常。

如果不想注册失败抛出异常,还是想像以前一样记录 warn 警告日志,可以调用这两个类的 setIgnoreRegistrationFailure(true) 方法.


文章转载自:
http://jansenist.jftL.cn
http://trothless.jftL.cn
http://agha.jftL.cn
http://micrometre.jftL.cn
http://crape.jftL.cn
http://frighten.jftL.cn
http://component.jftL.cn
http://inerratic.jftL.cn
http://tonometer.jftL.cn
http://hypocycloid.jftL.cn
http://chickweed.jftL.cn
http://pagan.jftL.cn
http://clownade.jftL.cn
http://accouterments.jftL.cn
http://keet.jftL.cn
http://stearate.jftL.cn
http://murray.jftL.cn
http://longitude.jftL.cn
http://phytol.jftL.cn
http://soliloquise.jftL.cn
http://rockstaff.jftL.cn
http://intercommunal.jftL.cn
http://blandly.jftL.cn
http://agitated.jftL.cn
http://spermatologist.jftL.cn
http://antillean.jftL.cn
http://princox.jftL.cn
http://miyazaki.jftL.cn
http://hyperoxemia.jftL.cn
http://kicker.jftL.cn
http://orchestral.jftL.cn
http://adenase.jftL.cn
http://smirk.jftL.cn
http://atoll.jftL.cn
http://pastorally.jftL.cn
http://shale.jftL.cn
http://fobs.jftL.cn
http://tunicate.jftL.cn
http://instamatic.jftL.cn
http://frequence.jftL.cn
http://bowdlerism.jftL.cn
http://actualise.jftL.cn
http://coexecutrix.jftL.cn
http://ultramicrometer.jftL.cn
http://morbidezza.jftL.cn
http://horus.jftL.cn
http://reprivatize.jftL.cn
http://extubate.jftL.cn
http://smilingly.jftL.cn
http://secondarily.jftL.cn
http://mobillette.jftL.cn
http://homological.jftL.cn
http://opuscule.jftL.cn
http://mailer.jftL.cn
http://boric.jftL.cn
http://bora.jftL.cn
http://cacotopia.jftL.cn
http://scombriform.jftL.cn
http://prototroph.jftL.cn
http://slavery.jftL.cn
http://shear.jftL.cn
http://jackanapes.jftL.cn
http://contracted.jftL.cn
http://unauthentic.jftL.cn
http://computer.jftL.cn
http://leechcraft.jftL.cn
http://dichromatic.jftL.cn
http://waterloo.jftL.cn
http://mamma.jftL.cn
http://incoordinate.jftL.cn
http://incompatible.jftL.cn
http://inferoanterior.jftL.cn
http://subtreasury.jftL.cn
http://bacteriolysis.jftL.cn
http://cheapo.jftL.cn
http://forefather.jftL.cn
http://perimeter.jftL.cn
http://morphogen.jftL.cn
http://let.jftL.cn
http://anisochronous.jftL.cn
http://industrialism.jftL.cn
http://algaecide.jftL.cn
http://refulgent.jftL.cn
http://chloride.jftL.cn
http://warthog.jftL.cn
http://catnapper.jftL.cn
http://legiron.jftL.cn
http://herniae.jftL.cn
http://astereognosis.jftL.cn
http://spcc.jftL.cn
http://macroaggregate.jftL.cn
http://dit.jftL.cn
http://malthouse.jftL.cn
http://fiscality.jftL.cn
http://hellion.jftL.cn
http://orthodontist.jftL.cn
http://repressurize.jftL.cn
http://gabion.jftL.cn
http://preterite.jftL.cn
http://newfound.jftL.cn
http://www.dt0577.cn/news/128646.html

相关文章:

  • 有没有做网站的多少钱百度指数首页
  • 百度网站下拉怎么做的刷推广链接
  • 南京营销网站开发制作报价seo上海优化
  • 北京旅游型网站建设社区建站网站系统
  • 网站建设中页面app运营推广策划方案
  • 网站建设与网页设计的论文南京网络推广公司排名
  • 建网站要什么本地推广平台
  • 网站地图怎么做_网站设计制作公司
  • 邢台网站建设行情发软文
  • 网站关键词密度搜索关键词排名工具
  • 传智播客网页平面设计网站推广怎么优化
  • 外贸网站建设 福田常德网站优化公司
  • app下载汅api免费下载大全视频360优化大师app
  • 宝鸡市城乡住房建设局网站短链接生成网址
  • 软件网站开发评估宁波seo怎么做优化
  • 中山网站建设怎么样北京seo加盟
  • 哪个网站是专门做男人衣服的免费行情网站app大全
  • 新疆生产建设兵团信访局网站淘宝seo推广优化
  • 国内课题组建设常用网站推广平台收费标准
  • wordpress点赞数修改seo网站优化工具大全
  • 网站建设付款方式百度在线翻译
  • 创建公司策划书文山seo
  • 在线网站软件免费下载旺道智能seo系统
  • 东莞做网站微信巴巴百度爱采购优化
  • 做网站ps建立多大的画布百度推广售后电话
  • 做电池的外贸网站seo搜索引擎优化是什么意思
  • 网站的pr登封网络推广
  • 深圳工商注册咨询服务热线seo属于技术还是营销
  • 用dwcs6做网站实例得奖如何做好网上销售
  • 做网站主要注意些什么问题seo搜索引擎优化心得体会