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.
1 parent 2105be2 commit 79573bdCopy full SHA for 79573bd
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/Archive.java
@@ -53,9 +53,12 @@ public String getMainClass() throws Exception {
53
if (manifest != null) {
54
mainClass = manifest.getMainAttributes().getValue("Start-Class");
55
}
56
+ if (manifest != null) {
57
+ mainClass = manifest.getMainAttributes().getValue("Main-Class");
58
+ }
59
if (mainClass == null) {
60
throw new IllegalStateException(
- "No 'Start-Class' manifest entry specified in " + this);
61
+ "No 'Start-Class' nor 'Main-Class' manifest entry specified in " + this);
62
63
return mainClass;
64
0 commit comments