작성
·
374
0
Parameter 0 of method jobListenerJob in com.example.demo.job.jobListener.JobListenerConfig required a single bean, but 3 were found:
- helloWorldStep: defined in BeanDefinition defined in class path resource [com/example/demo/job/helloworld/HelloWorldJobConfig.class]
- JobListenerStep: defined in BeanDefinition defined in class path resource [com/example/demo/job/jobListener/JobListenerConfig.class]
- validatedParamStep: defined in BeanDefinition defined in class path resource [com/example/demo/job/validatedParam/ValidatedParamConfig.class
Job이 전혀다르고 실행 시 Job 이름도 인수로 다르게 넘겨줬는데 계속 이게 나오는데 @Primary를 쓰지 않고 실행하려면 어떻게 해야할까요..?