weixin_47770954 2021-06-27 16:16 采纳率: 0%
浏览 142

Error creating bean with name 'userController'

球球大佬们救救孩子吧,这个是什么错误啊?找了一天了,还没解决。

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'type'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.itheima.po.Type' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  • 写回答

1条回答 默认 最新

  • 关注

    userController里面有错误。

    看看这个

    com.itheima.po.Type
    评论

报告相同问题?