feat():监听
parent
ca4af77a86
commit
50fc46d41a
|
@ -1,6 +1,5 @@
|
||||||
package com.muyu.cloud.pay;
|
package com.muyu.cloud.pay;
|
||||||
|
|
||||||
import com.dtflys.forest.springboot.annotation.ForestScan;
|
|
||||||
import com.muyu.common.security.annotation.EnableCustomConfig;
|
import com.muyu.common.security.annotation.EnableCustomConfig;
|
||||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
@ -16,7 +15,6 @@ import org.springframework.context.ConfigurableApplicationContext;
|
||||||
* @Date:2024/7/31 19:28
|
* @Date:2024/7/31 19:28
|
||||||
*/
|
*/
|
||||||
@Log4j2
|
@Log4j2
|
||||||
@ForestScan(basePackages = "com.muyu.cmmon.nacos.remote")
|
|
||||||
@EnableCustomConfig
|
@EnableCustomConfig
|
||||||
@EnableMyFeignClients
|
@EnableMyFeignClients
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
|
|
|
@ -1,58 +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;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Author:weiran
|
|
||||||
* @Package:com.muyu.cloud.pay
|
|
||||||
* @Project:cloud-pay
|
|
||||||
* @name:MySpringApplicationRunlistener
|
|
||||||
* @Date:2024/8/9 8:59
|
|
||||||
*/
|
|
||||||
@Log4j2
|
|
||||||
public class MySpringApplicationRunlistener implements SpringApplicationRunListener {
|
|
||||||
public MySpringApplicationRunlistener(){
|
|
||||||
log.info("MySpringApplicationRunlistener");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void starting(ConfigurableBootstrapContext bootstrapContext) {
|
|
||||||
log.info("执行:{}","starting");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void environmentPrepared(ConfigurableBootstrapContext bootstrapContext, ConfigurableEnvironment environment) {
|
|
||||||
log.info("执行:{}","environmentPrepared");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void contextPrepared(ConfigurableApplicationContext context) {
|
|
||||||
log.info("执行:{}","contextPrepared");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void contextLoaded(ConfigurableApplicationContext context) {
|
|
||||||
log.info("执行:{}","contextLoaded");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void started(ConfigurableApplicationContext context, Duration timeTaken) {
|
|
||||||
log.info("执行:{}","started");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void ready(ConfigurableApplicationContext context, Duration timeTaken) {
|
|
||||||
log.info("执行:{}","ready");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void failed(ConfigurableApplicationContext context, Throwable exception) {
|
|
||||||
log.info("执行:{}","failed");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
com.muyu.cloud.pay.MySpringApplicationRunlistener
|
|
Loading…
Reference in New Issue