这是我的项目结构:
org.springframework.beans.factory.BeanCreationException: Error creating bean withnested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying beanof type [com.chicken.service.EggService] found for dependency: expected at
我在applicationContext.xml中定义了applicationContext.xml,在applicationContext.xml中也定义了配置1 bean,例如,它被称为myService并且这个bean还使用@Service注释进行注释,然后在调度-servlet.xml中添加<Component-scan.....>。我认为属性: name没有得到值,because Xml bean is overridden by component scan bean andPla