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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

mybatis 配置文件錯(cuò)誤

mybatis 配置文件錯(cuò)誤

XFE_星城前端_Peter 2016-02-12 22:59:09
<!--?無意之中,再一次打開我的配置文件出現(xiàn)了一個(gè)錯(cuò)誤,標(biāo)注在mapper標(biāo)簽開始的位置: ????錯(cuò)誤的內(nèi)容為:The?content?of?element?type?"mapper"?must?match?"(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*| ?select*)+". ???在線急等求解答! ?--> <?xml?version="1.0"?encoding="UTF-8"?> <!DOCTYPE?mapper ??PUBLIC?"-//mybatis.org//DTD?Mapper?3.0//EN" ??"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper??namespace="dao.JaigeDao"> <!--?添加新數(shù)據(jù)?--> <insert?id="SaveJiage"?parameterType="Jiage"> insert?into xcphonefix.jiage(jgnum,pjid,xhid) values (#{jgnum},#{pjid},#{xhid}) </insert> <!--?分頁查詢?start?--> <!--?分頁查詢所有數(shù)據(jù)?--> <select?id="indexSee"?resultType="Jiage"?parameterType="map"> select ?*? from?jiage? where?pjid?=?#{topPJid}?and?xhid?#{topXHid} limit?#{0},#{0} </select> <!--?返回的價(jià)格數(shù)據(jù)集合?--> <resuleMap?type="Jiage"?id="JiageMapper"> <id?column="jgid"?property="jgid"/> <association?property="xinghao"?column="xhid"?javaType="Xinghao"> <id?column="xhid"?property="xhid"/> <association?property="pinpai"?column="ppid"?javaType="Pinpai"> <id?column="ppid"?property="ppid"/> </association> </association> <association?property="peijian"?column="pjid"?javaType="Peijian"> <id?column="pjid"?property="pjid"/> </association> </resuleMap> <!--?更新數(shù)據(jù)?start?--> <!--?拉取展示數(shù)據(jù),用以編輯?--> <select?id="SeeAllJiage"?resultType="JiageMapper"?parameterType="map"?> select?jgid,jgnum,pjname,xhname,ppname,jgShow from?xcphonefix.jiage?j? left?join?xcphonefix.peijian?pj?on?j.pjid=pj.pjid left?join?xcphonefix.xinghao?xh?on?j.xhid=xh.xhid order?by?pubdate?DESC? limit?#{pagebegin},#{pagesize} </select> <!--?拉取要更新的數(shù)據(jù)?--> <select?id="SeeOneJiage"?resultType="Jiage"?parameterType="int"> select jgid,jgnum,pjid,xhid,jgShow from?xcphonefix.jiage?where?jgid=#{jgid} </select> <!--?更新數(shù)據(jù)?--> <update?id="updateJiage"?parameterType="map"> update?? set?jgnum=#{jgnum},pjid=#{pjid},xhid=#{xhid},jgShow=#{jgShow} where?jgid=#{jgid} </update> <!--?更新數(shù)據(jù)?end?--> <!--?刪除數(shù)據(jù)?start?--> <delete?id="deleteJiage"> delete?from?xcphonefix.jiage? where?jgid=#{jgid} </delete> <!--?刪除數(shù)據(jù)?end?--> </mapper>
查看完整描述

1 回答

?
HansonQ

TA貢獻(xiàn)223條經(jīng)驗(yàn) 獲得超56個(gè)贊

這個(gè)提示是因?yàn)槟阄募械呐渲庙樞驔]要按照它提示的那樣,
The?content?of?element?type?"mapper"?must?match?"(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|
?select*)
?這個(gè)提示是要求mybatis的配置文件內(nèi)容要按照這個(gè)順序。


查看完整回答
1 反對(duì) 回復(fù) 2016-02-16
  • 新睿1st
    新睿1st
    另有一個(gè)mapper文件,沒有按照這個(gè)順序,編譯能通過。。
  • kuanglang
    kuanglang
    我的也不行啊 怎么解決的啊
  • qq_橡樹_10
    qq_橡樹_10
    樓主的回答很精辟,我也遇到這種情況,我是把select寫在了前面,按照順序我把select寫在了最后,問題解決,多謝
  • 1 回答
  • 0 關(guān)注
  • 12384 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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