fix(): 监听
parent
19ceafd1ca
commit
69d9a198ce
|
@ -10,7 +10,6 @@ import org.springframework.context.ConfigurableApplicationContext;
|
||||||
|
|
||||||
|
|
||||||
@Log4j2
|
@Log4j2
|
||||||
@ForestScan(basePackages = "com.muyu.common.nacos.remote")
|
|
||||||
@EnableCustomConfig
|
@EnableCustomConfig
|
||||||
@EnableMyFeignClients
|
@EnableMyFeignClients
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
|
|
|
@ -1,52 +0,0 @@
|
||||||
package com.muyu.cloud.pay;
|
|
||||||
|
|
||||||
import lombok.extern.log4j.Log4j2;
|
|
||||||
import org.springframework.boot.ConfigurableBootstrapContext;
|
|
||||||
import org.springframework.boot.SpringApplicationRunListener;
|
|
||||||
import org.springframework.context.ConfigurableApplicationContext;
|
|
||||||
import org.springframework.core.env.ConfigurableEnvironment;
|
|
||||||
|
|
||||||
import java.time.Duration;
|
|
||||||
|
|
||||||
|
|
||||||
@Log4j2
|
|
||||||
public class MySpringApplicationRunListener implements SpringApplicationRunListener {
|
|
||||||
public MySpringApplicationRunListener() {
|
|
||||||
log.info("MySpringApplicationRunListener");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void starting(ConfigurableBootstrapContext bootstrapContext) {
|
|
||||||
log.info("执行:{}","starting");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void contextPrepared(ConfigurableApplicationContext context) {
|
|
||||||
log.info("执行:{}","contextPrepared");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void environmentPrepared(ConfigurableBootstrapContext bootstrapContext, ConfigurableEnvironment environment) {
|
|
||||||
log.info("执行:{}","environmentPrepared");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void contextLoaded(ConfigurableApplicationContext context) {
|
|
||||||
log.info("执行:{}","contextLoaded");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void started(ConfigurableApplicationContext context, Duration timeTaken) {
|
|
||||||
log.info("执行:{}","started");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void failed(ConfigurableApplicationContext context, Throwable exception) {
|
|
||||||
log.info("执行:{}","failed");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void ready(ConfigurableApplicationContext context, Duration timeTaken) {
|
|
||||||
log.info("执行:{}","ready");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
com.muyu.cloud.pay.MySpringApplicationRunListener
|
|
Loading…
Reference in New Issue