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