异常的完成信息
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.hm.service.IUserService’ available: expected at least 1 bean which qualifies as autowire candidate.
我是分模块开发:异常排查方式如下
①: 模块之间的依赖引入没有错误
②: 注解标注没有错误
③: 包扫描没有错误
④: spring配置文件,springMvc配置文件没有错误
⑤: web.xml文件配置错误
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
DispatcherServlet略。。。。
spring启动时没有加上监听器
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>