问题描述
org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.itime.dao.FamilyDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER)}application里面用的是注解的方式 高手们来尽快解决!!!!!!
解决方案
com.itime.dao.FamilyDao 在public class xx{} 前面加上@Repository
解决方案二:
引用com.itime.dao.FamilyDao这个关联的类没找到
时间: 2025-01-25 10:42:53