public class SpringbootEasyRunlistener extends Object implements org.springframework.boot.SpringApplicationRunListener
| 构造器和说明 |
|---|
SpringbootEasyRunlistener(org.springframework.boot.SpringApplication application,
String[] args)
初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
contextLoaded(org.springframework.context.ConfigurableApplicationContext context) |
void |
contextPrepared(org.springframework.context.ConfigurableApplicationContext context) |
void |
environmentPrepared(org.springframework.core.env.ConfigurableEnvironment environment) |
void |
finished(org.springframework.context.ConfigurableApplicationContext context,
Throwable exception) |
void |
started(org.springframework.context.ConfigurableApplicationContext context)
为了兼容SpringBoot不通版本
|
void |
starting() |
public SpringbootEasyRunlistener(org.springframework.boot.SpringApplication application,
String[] args)
application - SpringBoot应用args - SpringBoot应用的启动参数public void starting()
starting 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void environmentPrepared(org.springframework.core.env.ConfigurableEnvironment environment)
environmentPrepared 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void contextPrepared(org.springframework.context.ConfigurableApplicationContext context)
contextPrepared 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void contextLoaded(org.springframework.context.ConfigurableApplicationContext context)
contextLoaded 在接口中 org.springframework.boot.SpringApplicationRunListenerpublic void started(org.springframework.context.ConfigurableApplicationContext context)
context - 上下文信息public void finished(org.springframework.context.ConfigurableApplicationContext context,
Throwable exception)
finished 在接口中 org.springframework.boot.SpringApplicationRunListenerCopyright © 2023. All rights reserved.