春季启动启动失败:BatchConfigurer

时间:2020-04-08 04:15:24

标签: spring-boot

我正在编写一个非常简单的spring boot应用程序,但是遇到一个奇怪的错误。 找不到BatchConfigure。我的pom.xml很简单,为什么会发生?我尝试添加“ org.springframework.batch”依赖项,但是我遇到了另一个例外,此外,我没有在spring io指南中看到此依赖项。 所以任何人都可以在这里提供帮助,非常感谢

下面是控制台输出和我的pom.xml

**警告**:由于默认包的@ComponentScan,您的ApplicationContext不太可能启动。

2020-04-07 21:04:53.873 WARN 17079 --- [main] ConfigServletWebServerApplicationContext:上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.BeanDefinitionStoreException:无法解析配置类[Tinyurl ]; 嵌套的异常是java.lang.IllegalArgumentException:找不到类[org.springframework.batch.core.configuration.annotation.BatchConfigurer ]

.....

org.springframework.beans.factory.BeanDefinitionStoreException:无法解析配置类[Tinyurl]。嵌套的异常是java.lang.IllegalArgumentException:找不到类[org.springframework.batch.core.configuration.annotation.BatchConfigurer] enter image description here

0 个答案:

没有答案