feat():增加了客户接口
parent
f2f298bde5
commit
7575120f80
|
@ -0,0 +1,56 @@
|
||||||
|
package com.muyu.pay.server;
|
||||||
|
|
||||||
|
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 environmentPrepared(ConfigurableBootstrapContext bootstrapContext, ConfigurableEnvironment environment) {
|
||||||
|
log.info("执行:starting");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void contextPrepared(ConfigurableApplicationContext context) {
|
||||||
|
log.info("执行:contextPrepared");
|
||||||
|
SpringApplicationRunListener.super.contextPrepared(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void contextLoaded(ConfigurableApplicationContext context) {
|
||||||
|
log.info("执行:contextLoaded");
|
||||||
|
SpringApplicationRunListener.super.contextLoaded(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void started(ConfigurableApplicationContext context, Duration timeTaken) {
|
||||||
|
log.info("执行:started");
|
||||||
|
SpringApplicationRunListener.super.started(context, timeTaken);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ready(ConfigurableApplicationContext context, Duration timeTaken) {
|
||||||
|
log.info("执行:ready");
|
||||||
|
SpringApplicationRunListener.super.ready(context, timeTaken);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void failed(ConfigurableApplicationContext context, Throwable exception) {
|
||||||
|
log.info("执行:failed");
|
||||||
|
SpringApplicationRunListener.super.failed(context, exception);
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,7 +8,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
@EnableCustomConfig
|
@EnableCustomConfig
|
||||||
@EnableMyFeignClients
|
@EnableMyFeignClients
|
||||||
@ForestScan(basePackages = "com.muyu.common.nacos.remote")
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class PayApplication {
|
public class PayApplication {
|
||||||
public static void main (String[] args) {
|
public static void main (String[] args) {
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
com.muyu.pay.server.MySpringApplicationRunListener
|
Loading…
Reference in New Issue