org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.baobaotao.service.UserService com.baobaotao.web.LoginController.userService; nested exceptio
n is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.baobaotao.service.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)}
com.baobaotao.service.UserService Autowired
不成功请问是什么问题
没有写错