你这个Controller不只一个实例, 我猜你在spring主配置文件中也扫描到了这个Controller,那个地方不要扫描控制器。<!-- 使用annotation 自动注册bean, 并保证@Required、@Autowired的属性被注入 -->
<context:component-scan base-package="com.xxx.xxx" use-default-filters="false" >
<!-- 扫描符合 @Repository @Service的类 -->
<context:include-filter type="annotation"
expression="org.springframework.stereotype.Repository" />
<context:include-filter type="annotation"
expression="org.springframework.stereotype.Service" />
<context:include-filter type="annotation"
expression="org.springframework.stereotype.Component" />
<context:exclude-filter type="annotation"
expression="org.springframework.stereotype.Controller" />
</context:component-scan>然后在springMVC的xml中扫描Controller,就是你去掉掉的那句话<!-- 自动扫描且只扫描@Controller -->
<context:component-scan base-package="com.xxx.xxx" use-default-filters="false">
<context:include-filter type="annotation"
expression="org.springframework.stereotype.Controller" />
</context:component-scan>