---
title: ".. UserService] found for dependency: expected at least 1 bean which qualifies a"
author: "cczzyc"
date: "2015-11-11T17:32:29Z"
tags: []
categories: ["编程语言"]
slug: "userservice-found-for-dependency-expected-at-least-1-bean-which-qualifies-a"
draft: false
lastmod: "2015-11-11T17:32:29Z"
id: 2256229
url: "https://hardworkbird.iteye.com/blog/2256229"
---

**..** 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*)} at org.

 

解决方案：

在serviceImpl 类上加注解

@Service()