第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

為什么我的錯(cuò)誤是這樣的 文件是utf8 不是bom

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'class path resource [maper]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. ?Cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; 前言中不允許有內(nèi)容。


正在回答

2 回答

我的問題是應(yīng)為 spring 配置mapper 寫錯(cuò)了 少寫了/*.xml

0 回復(fù) 有任何疑惑可以回復(fù)我~

解決方法:

1、確保xml的第一句<?xml version="1.0" encoding="UTF-8"?>之前沒有空格。

2、復(fù)制網(wǎng)上的xml文件的時(shí)候,建議這一句<?xml version="1.0" encoding="UTF-8"?>不要復(fù)制,保留生成文件的時(shí)候生成的這句代碼<?xml version="1.0" encoding="UTF-8"?>,這樣就能避免這種bug出現(xiàn)。


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為什么我的錯(cuò)誤是這樣的 文件是utf8 不是bom

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)