remove agent code. use config: spring.reactor.debug-agent.enabled

This commit is contained in:
zhou-hao 2020-05-11 13:44:09 +08:00
parent fc1fa8491a
commit 6e7370b951
1 changed files with 1 additions and 4 deletions

View File

@ -13,7 +13,6 @@ 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;
@ -25,12 +24,10 @@ import javax.annotation.PostConstruct;
@EnableEasyormRepository("org.jetlinks.community.**.entity")
@EnableAopAuthorize
@EnableAccessLogger
@Slf4j
public class JetLinksApplication {
public static void main(String[] args) {
if (!Boolean.getBoolean("reactor.debug.agent.disabled")) {
ReactorDebugAgent.init();
}
SpringApplication.run(JetLinksApplication.class, args);
}