Skip to content

Conversation

carlg0020
Copy link

This commit support the differents ways write main methods in MainApplication.class to Launcher.
This change support the traditional main Method:

public static void main(String[] args) {
	SpringApplication.run(Application.class, args);
}

And support to the main method without arguments:

public static void main() {
	SpringApplication.run(Application.class);
}

@pivotal-cla
Copy link

@carlg0020 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@carlg0020 Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 8, 2024
@philwebb
Copy link
Member

philwebb commented Nov 8, 2024

Thanks for the PR, but since this feature is still in preview we'd prefer not to support it yet. Issue #35785 is tracking the feature as well as looking at unnamed classes.

@philwebb philwebb closed this Nov 8, 2024
@philwebb philwebb added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 8, 2024
@vulinh64
Copy link

I do expect this to be production-ready in Java 25 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants