Action: Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
*************************** APPLICATION FAILED TO START *************************** Description: Field sampleInterface in ******** required a single bean, but 3 were found: - oneExecutor: defined by method 'oneExecutor' in class path resource [***************] - twoExecutor: defined by method 'twoExecutor' in class path resource [***************] - threeExecutor: defined by method 'threeExecutor' in class path resource [***************] Action: Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
sampleInterfaceをimplementしているクラスが3つ(oneExecutor, twoExecutor, threeExecutor)ある。 sampleInterfaceをDIした際(@Autowired)、実装クラスを明示してあげる(@ Qualifier)必要がある。
というError