在 加载applicationContext.xml(spring配置文件)处再加上 classpath*:resource/spring/activemProducer.xml; 如下所示:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value> classpath*:resource/spring/applicationContext.xml;
classpath*:resource/spring/activemProducer.xml;
</param-value>
</context-param>