解决方法 boot 启动类的 pom 中要配置子 Module 依赖boot 启动类注解上需要加载子模块包路径 @SpringBootApplication(scanBasePackages = {"com.kele"})