增加ReactorDebugAgent

This commit is contained in:
zhou-hao 2020-04-23 14:51:23 +08:00
parent a1b5e2c1a0
commit 7b5d8cfb14
2 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Profile;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
import reactor.tools.agent.ReactorDebugAgent;
import javax.annotation.PostConstruct;
@ -27,6 +28,9 @@ import javax.annotation.PostConstruct;
public class JetLinksApplication {
public static void main(String[] args) {
if (!Boolean.getBoolean("reactor.debug.agent.disabled")) {
ReactorDebugAgent.init();
}
SpringApplication.run(JetLinksApplication.class, args);
}

View File

@ -270,6 +270,11 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-tools</artifactId>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>