Error creating bean with name 'userController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.tianbo.serviceimpls.UserInfoServiceImpls] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
使用spring mvc的注解配置或xml配置
userController控制器依赖的 service和dao层都需要写上相关的注解配置信息,你仔细查下userController依赖的相关userService和userDao的类有没有写注解或xml的配置