SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: InlineParameterMap


<select id="getResByName" resultClass="Resources" parameterClass="java.lang.String">
    select ID id,RESNAME resname from DIR_RESOURCES where RESNAME = #value# ;
   </select>

ibatis 语句切忌 不用加“;”否则就杯具了!

 

 

把 <select></select> 标签中,SQL语句的 ; 去掉,就成功了!

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM