次の例外が発生します。
StateException: Bean クラス [com.company.project.services.autoExec.ScenarioService] のアノテーションで指定された Bean 名 'scenarioServiceImpl' は、既存の互換性のない同じ名前の Bean 定義と競合し、>class[com.company.project.services .autoExec.ScenarioServiceImpl] > org.springframework.ontext.annotation.ClassPathBeanDefinitionScanner.checkCandidate(ClassPath>BeanDefinitionScanner.java:274) で
class と interface の両方のシグネチャは次のとおりです。
public interface ScenarioService
@Component("scenarioServiceImpl")
public class ScenarioServiceImpl implements ScenarioService
Spring が、実装で指定した名前をインターフェイスに割り当て、競合が発生する理由が本当にわかりません。
PS : 私は xml ベースの構成を使用していないので、競合がないことをご安心ください。