工作小总结

我有个spring boot项目,可以正常启动的。启动类有AClass修改成BClass后,启动报错: 错误: 找不到或无法加载主类

2.检查项目配置确保你的项目配置文件(如pom.xml或build.gradle)中正确指定了主类。例如,在pom.xml中:<build> <plugins> <plugin>

2. 检查项目配置

确保你的项目配置文件(如 pom.xml 或 build.gradle)中正确指定了主类。例如,在 pom.xml 中:

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId

原创不易,完成人机校验,阅读全文

相关推荐