从位置模式[classpath *:META-INF / spring / customer-file-generation-job.xml]加载了0个bean定义

时间:2018-06-25 18:28:14

标签: java spring-boot spring-batch

我正在开发Spring Boot批处理示例。在此示例中,我编写的代码是加载批处理xml配置文件的主要方法。它给了我一个错误,说0豆装入了为什么这个奇怪的错误来了?

我们如何解决此错误?

2018-06-25 16:47:26,264 WARN  [org.apache.activemq.artemis.core.server] AMQ222107: Cleared up resources for session 590f0d6e-78c1-11e8-a8e1-e82aea578992
2018-06-25 16:48:44,412 WARN  [org.apache.activemq.artemis.core.server] AMQ222061: Client connection failed, clearing up resources for session 87928e3c-78c1-11e8-bcaa-e82aea578992

主要方法

TextMessage receivedMsg = (TextMessage) consumer.receive();

enter image description here

为什么要装载豆子?

XML文件

2018-06-25 23:48:32,247 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Resolved classpath location [META-INF/spring/XXXXX-job.xml] to resources []
2018-06-25 23:48:32,247 [main] DEBUG org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 0 bean definitions from location pattern [classpath*:META-INF/spring/customer-file-generation-job.xml]
2018-06-25 23:48:32,248 [main] DEBUG org.springframework.context.support.ClassPathXmlApplicationContext - Bean factory for org.springframework.context.support.ClassPathXmlApplicationContext@64b8f8f4: org.springframework.beans.factory.support.DefaultListableBeanFactory@38082d64: defining beans []; root of factory hierarchy
2018-06-25 23:48:32,291 [main] DEBUG org.springframework.context.support.ClassPathXmlApplicationContext - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@23ceabc1]
2018-06-25 23:48:32,294 [main] DEBUG org.springframework.context.support.ClassPathXmlApplicationContext - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@51081592]
2018-06-25 23:48:32,295 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@38082d64: defining beans []; root of factory hierarchy
2018-06-25 23:48:32,296 [main] DEBUG org.springframework.context.support.ClassPathXmlApplicationContext - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@d2cc05a]
2018-06-25 23:48:32,296 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'lifecycleProcessor'
2018-06-25 23:48:32,298 [main] DEBUG org.springframework.core.env.PropertySourcesPropertyResolver - Could not find key 'spring.liveBeansView.mbeanDomain' in any property source

0 个答案:

没有答案