spring-projects / spring-projects/spring-boot
Provide SpringApplication.exit alternative
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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