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,在线等,急。
1、扫描包:
<context:component-scan base-package="com.mt"/>
2、@Service
public class UserService {}
3、一直找不到service,在线等,急。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货