Skip to content

implements ApplicationListener<ApplicationStartedEvent>  #87

@ghj1040110333

Description

@ghj1040110333

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions