A query was run and no Result Maps were found for the Mapped Statement
Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement ‘com.shadow.foretaste.UserInfoDao.getPhoneNum‘. It‘s likely that neither a Result Type nor a Result Map was specified.
導致這個錯誤的原因是:
mapper.xml中沒有指定返回值類型
<select id="getPhoneNum" > select phone_num from user_info where id = #{id} </select>
修改後:
<select id="getPhoneNum" resultType="String"> select phone_num from user_info where id = #{id} </select>
本文出自 “數據挖掘工程師的成長歷程” 博客,請務必保留此出處http://qianqiansun.blog.51cto.com/13271301/1965502
A query was run and no Result Maps were found for the Mapped Statement
相關推薦
A query was run and no Result Maps were found for the Mapped Statement
a query was run and no result maps were found for the mapped statementCause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Ma
A query was run and no Result Maps were found for...原來是mapper.xml文件出了問題,是使用MyBatis最常見的一種錯誤
tor like .cn -1 es2017 batis pre XML apach 今天遇到一個問題,原來是mapper.xml文件出了問題,是使用MyBatis最常見的一種錯誤 報錯的結果是這樣的: A query was run and no Result Ma
mybatis foreach報錯It was either not specified and/or could not be found for the javaType Type handler
或許是慣性思維,在mybatis使用foreach迴圈呼叫的時候,很多時候都是傳一個物件,傳一個List的情況很少,所以寫程式碼有時候會不注意就用慣性思維方法做了。 今天向sql傳參,傳了一個List作為引數,然後在xml裡再foreach迴圈呼叫。然後報錯資訊如: myba
mvn:deploy神坑之:“maven deploy-file requires a project to execute but no pom file is found”
釋出程式碼如下: mvn -X deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-compiler-plugin -Dversion=3.6.0 -Dpackaging=jar -Dfi
IDEA 開啟或匯入專案出現的問題: *.is registered as a Git root, but no Git repositories were found there.
這是匯入或開啟專案時出現的問題。 點選右下角彈出視窗中的Configure 。這會在version contral (版本控制)選項卡上自動開啟一個視窗 也可以通過File->Settings進行訪問。 我選擇列表中的問題條目目,然後單擊紅色減號將其刪除。
We are rapidly moving toward a future where users will no longer have any control over the software…
We are rapidly moving toward a future where users will no longer have any control over the software they purchase. No physical copies and no digital backup
No parser and no filepath given,using 'babylon' the ...
VUE專案run dev 的時候報 No parser and no filepath given, using 'babylon' the parser now but this will throw an error in the future. Please spec
AutoMapper:Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custo
應用場景:ViewModel==>Mode對映的時候出錯 AutoMappe r錯誤資訊:Unmapped members were found. Review the types and members below.Add a custom mapping expression, ignore,
Mac安裝git,使用時提示 cannot run git xcode-select: note: no developer tools were found, requesting install.
1. 蘋果升級了系統到10.13,導致git不能使用,報以下錯誤no developer tools were found at ‘/Applications/Xcod
Render a controller in Twig - Unexpected “render” tag - expecting closing tag for the “block” tag defined
lin ack defined for ont per -i undle control Render a controller in Twig - Unexpected “render” tag - expecting closing tag for the “block
spring pom文件報錯:提示no declaration can be found for element 'dubbo:service'.
net 技術 found cnblogs 點擊 找到 inf 提示 src 轉自:http://blog.csdn.net/happylife_haha/article/details/52755425 pom文件報錯:The matching wildcard is st
dubbo spring pom文件報錯:提示no declaration can be found for element 'dubbo:service'.
valid windows validate tex file lib window win fcm pom文件報錯:The matching wildcard is strict, but no declaration can be found for element
關於控制臺輸出 警告 log4j:WARN No appenders could be found for logger
錯誤信息 解決 targe txt 發布 contexts oca 重新 fig 新建struts2項目時出現警告 log4j:WARN No appenders could be found for logger 於是上網搜查了解決方案 轉自:最愛NBA 在src下面
【SpringMVC】數據校驗時,拋出javax.validation.UnexpectedTypeException: HV000030: No validator could be found for type: java.util.Date.
springmvc 去掉 not orm align found 包括 text expect 老魏原創,轉載請留言。 原因:給Javabean中的字段註解多余或者錯誤導致。 @NotEmpty @Past @DateTimeFormat(pattern="yy
javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 解決方法
子項目 tom could javax tee IT getc 原因 flag 在使用hibernate validator進行參數有效性校驗的時候,我們有時候會遇到javax.validation.UnexpectedTypeException: HV000030: No
《Spring實戰》-- 'cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element' 錯誤的解決
tip c-c 面向切面 ng- join proc ima -a edi 在Eclipse中新建了一個maven項目學習Spring,在 service.xml 中配置 Spring,想要學習‘面向切面的Spring’,service.xml 內容如下: <bean
log4j:WARN No appenders could be found for logger
you lips ffffff 導入 ips ogg console shadow pattern Eclipse 用Spring導入這幾個文件都正常,可是寫簡單的代碼輸出HelloWorld,運行就出現下面的錯誤:解決這問題是在src下新建log4j.properties
關於dubbo創建服務和引用服務時,會報錯:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 問題的解決
一個 sch 系統 contex ips 分布 配置文件 prot 商城項目 在跟著做淘淘商城項目時,用到了dubbo,作為一個SOA架構的項目,分為表現層與服務層,自然地,為了各個層之間解耦合(或者最大限度地松耦合),我們使用了dubbo這樣一個alibaba開源的分
No original dex files found for dex location
Scan map file in dex files made error.
spring mvc No matching handler method found for servlet request:
2018-09-09 14:31:39 [ http-apr-9004-exec-9:393161 ] - [ ERROR ] cn.com.biz.exception.MyExceptionHandler.resolveException(MyExceptionHand