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

后端 未结 11 1887
旧巷少年郎
旧巷少年郎 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条回答
  •  不思量自难忘°
    2020-12-13 00:54

    or simply hard code the main class in plugin configuration.

            
                org.springframework.boot
                spring-boot-maven-plugin
                
                    
                        
                            repackage
                        
                        
                            your.main.class.MainClass
                        
                    
                
            
    

提交回复
热议问题