ibatis 参数之 String


<select id="query_cust_name" resultClass="_custForm" parameterClass="String">
        select cust_id custId,cust_name customerName from k_cust
        
             where  cust_name=#value#
        
    </select>

当参数为单个值的时候,用这个配置文件一直得不到结果,后来发现原来是参数类型错误,String这种事识别不了的。只有

parameterClass="string" 与 parameterClass="java.lang.String" 一个是ibatis的写法 一个是java的写法。改掉之后就正常了记录下来,给别人节约下时间。


免责声明!

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



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