错误提示
1、javax.servlet.ServletException: Servlet.init() for servlet [springmvc] threw exception
意思就是:Servlet[springmvc]的Servlet.init()引发异常
2、org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘customerController’: Unsatisfied dependency expressed through field ‘customerService’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.service.CustomerService’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
翻译为:
Org.springframework.beans.factory.UnsatisfiedDependencyException:创建名为“”CustomerController“”的Bean时出错:通过字段“”CustomerService“”表达的依赖项不满足;嵌套异常为org.springframework.beans.factory.NoSuchBeanDefinitionException:没有类型为“”com.service.CustomerService“”的限定Bean可用:应至少有一个符合自动布线候选条件的Bean。“。依赖项标注:{@org.springframework.beans.factory.annotation.Autowired(required=true)}
3、org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.service.CustomerService’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
翻译为:
Org.springframework.beans.factory.NoSuchBeanDefinitionException:没有‘com.service.CustomerService’类型的合格Bean可用:应至少有一个符合自动布线候选条件的Bean。依赖项标注:{@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决
1、此处 Mapper 错写为 Config
2、jsp 后应还有一个 “/” ,忘记加了
可 这两个问题解决后还是报相同的错误。。。。
3、持久化类拼写错误
jobs 错写为 jobds
4、路径错误
正确如下
5、终于运行成功了!!!!!