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