我是靠谱客的博主 俊秀柚子,最近开发中收集的这篇文章主要介绍Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]",觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
自己做一个项目的时候土人报这个错误
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'loginController': Unsatisfied dependency expressed through field 'adminService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminServiceImpl': Unsatisfied dependency expressed through field 'adminMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminMapper' defined in file [F:SSMPRO0SpringBoot-项目研发管理平台 -worker-managertargetclassescomhuworkermanagermapperadminMapper.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 [F:SSMPRO0SpringBoot-项目研发管理平台 -worker-managertargetclassesmapperadminMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; T**he processing instruction target matching "[xX][mM][lL]" is not allowed.**
弄了半天终于解决了
原因是如上图红色箭头那里出现了空格,这也是自己不小心造成的,copy这个文件头的时候出的差错
最后
以上就是俊秀柚子为你收集整理的Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]"的全部内容,希望文章能够帮你解决Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]"所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复