【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'

原文地址:https://www.cnblogs.com/shiboinfo/p/11584528.html