|
|
@ -914,6 +914,14 @@ public class SpringApplication {
|
|
|
|
&& "main".equals(currentThread.getThreadGroup().getName());
|
|
|
|
&& "main".equals(currentThread.getThreadGroup().getName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Returns the main application class that has been deduced or explicitly configured.
|
|
|
|
|
|
|
|
* @return the main application class or {@code null}
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public Class<?> getMainApplicationClass() {
|
|
|
|
|
|
|
|
return this.mainApplicationClass;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Set a specific main application class that will be used as a log source and to
|
|
|
|
* Set a specific main application class that will be used as a log source and to
|
|
|
|
* obtain version information. By default the main application class will be deduced.
|
|
|
|
* obtain version information. By default the main application class will be deduced.
|
|
|
|