Log useful information on startup

Include the bootstrap version number in the banner and log information
such as the host name when starting.

Issue: #53030523
This commit is contained in:
Phillip Webb
2013-07-12 00:28:48 -07:00
parent 7d824a5701
commit d4b9014b64
5 changed files with 256 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ public class SpringApplicationRunner {
// User reflection to load and call Spring
Class<?> application = getContextClassLoader().loadClass(
"org.springframework.bootstrap.SpringApplication");
Method method = application.getMethod("run", Object[].class,
Method method = application.getMethod("runFromScript", Object[].class,
String[].class);
this.applicationContext = method.invoke(null, this.sources,
SpringApplicationRunner.this.args);