spring-projects / spring-projects/spring-boot

Provide SpringApplication.exit alternative

Open
#25,100 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: on-hold type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

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);

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the documented SpringApplication.exit usage and the SpringApplication.run entry point shown in the issue. Determine the public-API, lifecycle, exit-code, documentation, and testing implications of a runAndExit alternative; done requires an agreed design and scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.