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);
}
Comment From: pivotal-cla
@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.
Comment From: pivotal-cla
@carlg0020 Thank you for signing the Contributor License Agreement!
Comment From: philwebb
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.
Comment From: vulinh64
I do expect this to be production-ready in Java 25 🤞