qq_55328791 2021-07-15 17:43 采纳率: 0%
浏览 58

整合ssm一直报错 Servlet[MVC001]的Servlet.init()引发异常,?

提示两个告别原因
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'mypt.service.studentService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup="", name="", description="", authenticationType=CONTAINER, type=java.lang.Object.class, mappedName="")}

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'mypt.service.studentService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup="", name="", description="", authenticationType=CONTAINER, type=java.lang.Object.class, mappedName="")}

img

  • 写回答

2条回答 默认 最新

  • CSDN专家-sinJack 2021-07-15 17:54
    关注

    spring-bean包导入了吗,以及包版本要统一。

    评论

报告相同问题?

问题事件

  • 创建了问题 7月15日