We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0366900 + 34b1de6 commit 2039ed4Copy full SHA for 2039ed4
spring-boot/src/main/java/org/springframework/boot/SpringApplication.java
@@ -914,6 +914,14 @@ private boolean isMainThread(Thread currentThread) {
914
&& "main".equals(currentThread.getThreadGroup().getName());
915
}
916
917
+ /**
918
+ * Returns the main application class that has been deduced or explicitly configured.
919
+ * @return the main application class or {@code null}
920
+ */
921
+ public Class<?> getMainApplicationClass() {
922
+ return this.mainApplicationClass;
923
+ }
924
+
925
/**
926
* Set a specific main application class that will be used as a log source and to
927
* obtain version information. By default the main application class will be deduced.
0 commit comments