spring-attic / spring-batch-admin-samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SampleJob load Failed

zhongyang0316 opened this issue · comments

hi
now,i started success,but i found SampleJob can not load and xmlJob can load normal.
and loading the conslole print:
2016-11-28 13:47:15.304 INFO 10948 --- [ restartedMain] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'scopedTarget.tasklet' with a different definition: replacing [Root bean: class [null]; scope=step; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=sampleJob; factoryMethodName=tasklet; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/csii/luosimao/rest/config/SampleJob.class]] with [Root bean: class [org.springframework.aop.scope.ScopedProxyFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in BeanDefinition defined in class path resource [org/csii/luosimao/rest/config/SampleJob.class]]

hi
i fixed it,it is my mistake,SampleJob must under org.springframework.batch.admin.sample.jobs.
but how can i choose other catalog
thanks

hi
i fixed it,it must Override Bean:xmlJobContextFactories and javaJobContextFactories
thanks