SpringBoot: Unable to find a single main class from the following candidates

后端 未结 11 1884
旧巷少年郎
旧巷少年郎 2020-12-13 00:06

I\'ve generated a Spring Boot web application using Spring Initializer, embedded Tomcat, Thymeleaf template engine.Technologies used: Spring Boot 1.4.2.RELEASE, Spring 4.3.4

11条回答
  •  Happy的楠姐
    2020-12-13 00:55

    I was building a spring boot library project, so I don't need a main starter class, so I faced the same issue while building the project with maven, so I removed the maven plugin to compile successfully

    
    

    For a more detailed example. find it here https://spring.io/guides/gs/multi-module/

提交回复
热议问题