原文:SpringBoot学习之一 Unable to find a single main class from the following candidates

在启动SpringBoot项目是报错 Unable to find a single main class from the following candidates boot.myboot.SampleController, boot.myboot.App 意思 是从这两个类中找不到要执行那个main方法 执行spring boot:run X打印出Debug日志 错误原因是因为:在这两个类中都 ...

2017-11-08 22:20 0 1167 推荐指数:

查看详情

解决SpringBoot项目repackage failed: Unable to find main class Maven打包问题

最近在开发中,遇到这样一个问题,一个通用的工具类项目,在进行打包时,出现repackage failed: Unable to find main class提示找不到主类问题,我就想,我这个项目是一个通用的工具类,不是一个SpringBoot Web工程,我又不需要Main方法的程序启动入口 ...

Wed May 08 20:53:00 CST 2019 0 1250
maven打包出现unable to find main class问题

搜了好久,有人提到需要spring-boot-maven-plugin这个插件。 添加以后,有的可以了,有的不行。 最后发现是插件必须配置<skip>true</skip>这个 ...

Wed Aug 05 02:00:00 CST 2020 0 1286
Could not find the main class

  最近开发了一个短信报警的服务,打成程序包之后,再本地windows启动(start.bat)没有问题,但是发到生产环境,报如下错: Could not find the main class 莫名其妙的报错,网上查了一下,都无法解决,后来想到既然我本地是正常的,那很有可能是环境问题 ...

Tue May 19 17:37:00 CST 2020 0 1892
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM