No qualifying bean of type ‘com.xxxx.xx.service.xxService’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
<!-- 自動掃描,将類自動注冊為bean,@Controller注解在spring mvc中掃描 -->
<context:component-scan base-package="com.test">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>