今天遇到一个问题:
信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1033a6f: defining beans [jobLauncher,jobRepository,transactionManager,org.springframework.batch.core.scope.internalStepScope,org.springframework.beans.factory.config.CustomEditorConfigurer,org.springframework.batch.core.configuration.xml.CoreNamespacePostProcessor,xmlStep,xmlJob,xmlItemReader,Productunmashaller,xmlItemProcessor,xmlItemWriter,scopedTarget.xmlItemReader,scopedTarget.xmlItemWriter]; root of factory hierarchy
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Productunmashaller' defined in class path resource [batch.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/HierarchicalStreamReader
上网一搜,是缺少包的情况,遂收录下来,以后使用,我下在的包在