From a968b140cc378bcefd2664242cd47072b24feeb6 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 2 May 2013 07:15:55 +0100 Subject: [PATCH] Add java docs to SpringApplication.main --- .../org/springframework/bootstrap/SpringApplication.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spring-bootstrap/src/main/java/org/springframework/bootstrap/SpringApplication.java b/spring-bootstrap/src/main/java/org/springframework/bootstrap/SpringApplication.java index 667f26b8528..e3d891a4425 100644 --- a/spring-bootstrap/src/main/java/org/springframework/bootstrap/SpringApplication.java +++ b/spring-bootstrap/src/main/java/org/springframework/bootstrap/SpringApplication.java @@ -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) { run(new Class[] { AutoMain.class }, args); }