赞
踩
spring.main.lazy-initialization:true
引入依赖:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-indexer</artifactId>
<optional>true</optional>
</dependency>
在启动类上使用@indexed注解,项目打包的时候会在项目中生成META-INF/spring.components 文件(索引文件)
G1,ZGC垃圾回收
spring-graalvm-native是springBoot3非常大的一个特性,支持使用GraalVM将Springboot的应用程序编译成本地可执行的镜像文件,可以显著提升启动速度、峰值性能以及减少内存使用。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。