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文件錯誤