Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implements ApplicationListener<ApplicationStartedEvent> #87

Open
ghj1040110333 opened this issue Jul 28, 2021 · 1 comment
Open

implements ApplicationListener<ApplicationStartedEvent> #87

ghj1040110333 opened this issue Jul 28, 2021 · 1 comment

Comments

@ghj1040110333
Copy link

SpringBoot打包成war包后继承ApplicationListener类都无效了

SpringApplication builder = new SpringApplication(Application.class);
builder.addListeners(new ApplicationListenerEnvironmentPrepared()); //extend ApplicationListener
builder.addListeners(new ApplicationListenerFailed()); //extend ApplicationListener
builder.addListeners(new ApplicationListenerPrepared()); //extend ApplicationListener
builder.addListeners(new ApplicationListenerStarting()); //extend ApplicationListener

@yinwenjian
Copy link

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants