mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Add java docs to SpringApplication.main
This commit is contained in:
parent
68960cca4e
commit
a968b140cc
@ -611,6 +611,15 @@ public class SpringApplication {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A basic main that can be used to launch an autoconfigured application. Useful for
|
||||||
|
* demos and testing, perhaps less for production use (where the run methods are more
|
||||||
|
* appropriate).
|
||||||
|
*
|
||||||
|
* @param args command line arguments
|
||||||
|
* @see #run(Object[], String[])
|
||||||
|
* @see #run(Object, String...)
|
||||||
|
*/
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
run(new Class<?>[] { AutoMain.class }, args);
|
run(new Class<?>[] { AutoMain.class }, args);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user