org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.mt.ssm.usermanage.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
1、扫描包:
<context:component-scan base-package="com.mt"/>
2、@Service
public class UserService {}
3、一直找不到service,在线等,急。