No qualifying bean of type 'com.java.scw.service.TPermissionService' available: expected at least 1

xiaoxiao2025-10-08  8

No qualifying bean of type ‘com.java.scw.service.TPermissionService’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

报这样的错一般是因为自己的service没有注解@Service,所以找不到,这时候 查看自己的service层的实现类上面有没有注解@Service

转载请注明原文地址: https://www.6miu.com/read-5037574.html

最新回复(0)