为了账号安全,请及时绑定邮箱和手机立即绑定

这是什么错

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'app': Unsatisfied dependency expressed through field 'userDOMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userDOMapper' defined in file [E:\ideawork\newdongsheng\trunk\miaosha\target\classes\com\miaoshaproject\dao\UserDOMapper.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:\ideawork\newdongsheng\trunk\miaosha\target\classes\mapping\UserPasswordDOMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 7; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。

正在回答

3 回答

你把逆向生成的xml文件给删了,重新生成就可以了。记得给生成的mapper接口加上@Repository

0 回复 有任何疑惑可以回复我~

这种情况应该是UserPasswordDOMapper.xml里面有错,我当时也报这个错误,后来发现是在xml里使用了”//“做注释

0 回复 有任何疑惑可以回复我~

我也遇到了这样的错误,好烦,不知道怎么解决,网上搜了感觉都不专业,难受

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

这是什么错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信