最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

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

Mapped Statements collection does not contain value哪位大神指導(dǎo)這是什么錯(cuò)誤嗎

org.apache.ibatis.exceptions.PersistenceException:?

### Error querying database. ?Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for Message.getListDao

### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for Message.getListDao

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:122)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:113)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:108)

at com.imooc.dao.ListDao.getListDao(ListDao.java:45)

at com.imooc.service.ListService.getListDao(ListService.java:18)

at com.imooc.service.ListService.main(ListService.java:22)

Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for Message.getListDao

at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:832)

at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:665)

at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:658)

at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:119)

... 5 more


正在回答

2 回答

確認(rèn)xml文件沒(méi)有寫錯(cuò),那就是位置的問(wèn)題了,這是老外的答案?

http://img1.sycdn.imooc.com//5ef1e99f0001526008800280.jpg

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

映射語(yǔ)句集合不包含值,原因可能是

1.mybatis的映射文件的命令空間與接口的全限定名不一致;

2有可能mybatis的映射文件名字與接口的類名字不一致;

3.還有一種情況就是接口聲明的方法在映射文件里面沒(méi)有。


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

舉報(bào)

0/150
提交
取消

Mapped Statements collection does not contain value哪位大神指導(dǎo)這是什么錯(cuò)誤嗎

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

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

幫助反饋 APP下載

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

公眾號(hào)

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