严重: 异常将上下文初始化事件发送到类的侦听器实例.[org.springframework.web.context.ContextLoaderListener]

严重: 异常将上下文初始化事件发送到类的侦听器实例.[org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.service.TagService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup="", name="", description="", authenticationType=CONTAINER, type=java.lang.Object.class, mappedName="")}

第一次做ssm这种的编程

img

无法注入TagService这个bean 看下是否交给Spring进行管理

看下TagService类是否有注册为bean,xml或者注解都行。

没有找到TagService的bean,看一下有没有配置

TagService 这个类通过xml或者注解的方式交给spring进行管理

TagService没有注入成功,检查一下这个类的注册配置吧