整合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

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

如果jar没问题就考虑版本是否冲突 https://blog.csdn.net/coralime/article/details/104863126