目录I. Encountering an error II. Ways to solve the error I. Encountering an error When doing the 小白， the project was Springboard vue2.0. After using the code generator, I encountered the following problems when starting to create a bean named "userController". resource dependency injection failed; The nested exception is org.springframework.Beans.factory.beannotoorequiredtypeexception : The bean named "userService" is exp.