【踩坑】SpringBoot项目启动时报错 发表于 2025-08-11 更新于 2025-12-26 阅读次数: 前言SpringBoot项目启动时报错:class path resource [org/springframework/batch/core/configuration/support/DefaultBatchConfiguration.class] cannot be opened because it does not exist 解决问题 排除Batch自动配置 在Application.java的入口类上添加排除配置 12@SpringBootApplication(exclude = [BatchAutoConfiguration::class])public class Application {} 完成