【springBoot】小记

在springboot项目中,当利用xml配置mybatis时:

 

 如果resultType的地址写错,不会抛出此处的错误,而是会报出,Mapper的自动装入错误:

org.springframework.beans.factory.BeanCreationException:

   Error creating bean with name 'lucenceApplication':

    Injection of resource dependencies failed;

      nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:

Error creating bean with name 'createIndexTestThread': Unsatisfied dependency expressed through field 'bookMapper'

posted @ 2019-09-25 14:49  爱打程序的篮球员  阅读(150)  评论(0编辑  收藏  举报