diff --git a/spring-boot-gradle/build.gradle b/spring-boot-gradle/build.gradle index 9c362281b0..fb651f79c9 100644 --- a/spring-boot-gradle/build.gradle +++ b/spring-boot-gradle/build.gradle @@ -31,4 +31,9 @@ dependencies { springBoot { mainClassName = 'org.baeldung.DemoApplication' +} + +bootJar { +// This is overridden by the mainClassName in springBoot{} and added here for reference purposes. + mainClassName = 'org.baeldung.DemoApplication' } \ No newline at end of file