Skip to content

Provide SpringApplication.exit alternative #25100

Open
@philwebb

Description

The SpringApplication.exit method seems quite hard to read. We currently document that it can be used as follows:

System.exit(SpringApplication.exit(SpringApplication.run(MyExitCodeApplication.class, args)));

It feels like a runAndExit method might be helpful:

SpringApplication.runAndExit(MyExitCodeApplication.class, args);

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions