org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'TL_C_CONS_ExtendController':
Unsatisfied dependency expressed through field 'tl_c_cons_extendService';
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'TL_C_CONS_ExtendService':
Unsatisfied dependency expressed through field 'tl_c_cons_extendDao';
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'TL_C_CONS_ExtendDao'
defined in file [E:\tl_cons_credit_rating\target\classes\com\youotech\tl_cons_credit_rating\dao\
TL_C_CONS_ExtendDao.class]: Unsatisfied dependency expressed through bean property
'sqlSessionFactory'; nested exception is org.springframework.beans.factory
.BeanCreationException: Error creating bean with name 'sqlSessionFactory'
defined in class path resource [org/mybatis/spring/boot/autoconfigure
/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory'
threw exception; nested exception is org.springframework.core.NestedIOException:
Failed to parse mapping resource: 'file [E:\tl_cons_credit_rating\target\classes
\mapper\TL_C_CONS_ExtendMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException:
Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 46; columnNumber:
135; 元素内容必须由格式正确的字符数据或标记组成。
最终还是通过一个步骤一个步骤的排查发现原来是MAPPER里面的SQL文件错误