我使用spring-cloud-sleuth将相关id添加到我的日志中,用于http请求、rabbitMQ消息和调度事件。添加依赖项后,应用程序启动时间增加了50%。所有其他配置属性,如spring.sleuth.async.enabled、spring.sleuth.grpc.enabled都有默认值true。如果我想减少我的应用程序启动时间,我需要在我的应用程序属性文件中明确地将所有它们都设置为false吗?(这会阻塞我的属性文件)有没有其他方法可以减少应用程序的启动时间?
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
<version>2.2.6.RELEASE</version>
</dependency>发布于 2020-12-01 18:08:31
是的,你需要禁用所有那些你不想使用的东西。默认情况下,用户确实想要使用它们,这就是启用它们的原因。
https://stackoverflow.com/questions/65088052
复制相似问题