Skip to content

Commit 60930fc

Browse files
committed
Added fix for error 'Unable to find a single main class from the following candidates [org.baeldung.boot.DemoApplication, org.baeldung.main.SpringBootApplication]'
1 parent c9865a0 commit 60930fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎spring-boot/pom.xml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
</parent>
1818

1919
<properties>
20+
<!-- The main class to start by executing java -jar -->
21+
<start-class>org.baeldung.boot.DemoApplication</start-class>
2022
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2123
<java.version>1.8</java.version>
2224
<!-- <spring.version>4.3.0.RELEASE</spring.version> -->

0 commit comments

Comments
 (0)