spring-boot で
対処方法を
- エラー内容
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'listCommand' for bean class [xyz.monotalk.google.webmaster.cli.subcommands.sites.ListCommand] conflicts with existing, non-compatible bean definition of same name and class [xyz.monotalk.google.webmaster.cli.subcommands.sitemaps.ListCommand] at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.checkCandidate(ClassPathBeanDefinitionScanner.java:345) at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:283) at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:135) at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:287) at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245) at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:198) at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167)
エラーの 原因
Comportnent scan 対象の
対処方法
以下の
Spring の
記事記載のFQCNBeanNameGenerator
を
以上です。
コメント