欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

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

最编程 2024-08-01 20:49:52
...

<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语句的 ; 去掉,就成功了!