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

Posted moonsoft

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.Nes相关的知识,希望对你有一定的参考价值。

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

 

以上是关于SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.Nes的主要内容,如果未能解决你的问题,请参考以下文章

整合多个maven工程时Spring配置加载JDBC问题

spring定时器,quartz 的用法,如何指定JobDetailBean类的属性jobClass对象的同时,给其注入其它对象?

@Autowired 注释与@Qualifier 注释

CSGO首日B组精彩对局:B.O.O.T.CN vs EclipseZB

排序算法

O(1)中的getKey(B)一对一映射数据结构(A,B)?