目录
一、遇到报错
在做那个小白做毕设的时候,项目是springboot+vue2.0。在用代码生成器后,启动遇到了如下的问题。
Error creating bean with name 'userController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userService' is expected to be of type 'com.computer.springboot.service.IUserService' but was actually of type 'com.computer.springboot.service.UserService$$EnhancerBySpringCGLIB$$2e7f3354'
二、解决报错方法
在UserController类里面把这个@Resourve改成