No qualifying bean of type [j.service.IUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}

如果是用xml配置的,确定下bean的name(id)是否正确,配置是否完整,如果是用注解,确定下你xml配置里面的扫描包是否扫描到了UserService这个java类所在的包,并且看下UserService类的注解配置是否正确!


Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐