1. 首先找到@Autowired注解下对应的对象
2. 找到applicationContext.xml文件中查看是否创建该bean
3. 查看web.xml中是否有配置以下内容
<!--全局的初始化参数-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<!--配置Spring监听器-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>