亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

這是什么錯

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下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號