iBatis做模糊查询时,报如下错误,不知道各位有没遇到过?如何处理?
错误:
com.ibatis.common.beans.ProbeException: There is no READABLE property named 'userName' in class 'java.lang.String'
at com.ibatis.common.beans.ClassInfo.getGetter(ClassInfo.java:259)
at com.ibatis.common.beans.ComplexBeanProbe.getProperty(ComplexBeanProbe.java:304)
at com.ibatis.common.beans.ComplexBeanProbe.getObject(ComplexBeanProbe.java:199)
at com.ibatis.common.beans.GenericProbe.getObject(GenericProbe.java:74)
SQL为:
<!-- 用户名模糊查询 -->
<select id="getUserByName" resultMap="UserResult" parameterClass="String" resultClass="List" cacheModel="user-cache">
select A.userId,
A.userName,
A.companyId,
A.userBH,
A.userPassword,
A.userFunction,
B.companyName,
A.createUser,
A.createDate,
A.updateUser,
A.updateDate
from userTable A left outer join company B on A.companyId=B.companyId
<dynamic prepend="where">
<isNotEmpty prepend="and" property="userName">
userName like '%$userName$%'
</isNotEmpty>
</dynamic>
</select>
分享到:
相关推荐
The book starts with an explanation of what reactive programming is, why it is so appealing, and how we can integrate it in to Java. It continues by introducing the new Java 8 syntax features, such as...
资源来自pypi官网。 资源全名:xontrib-readable-traceback-0.2.4.tar.gz
because the Groovy syntax is light and readable but still resembles that of Java. For interacting with XML payloads, web services, or databases, Groovy provides handy and elegant wrappers around the ...
// First make sure the source file exists, is a file, and is readable. if (!from_file.exists()) abort("no such source file: " + from_name); if (!from_file.isFile()) abort("can't copy directory: ...
“I taught a CS2 Data Structures class in D with more success and student appreciation than when using either C++ or Java as it's an ideal language to express the relevant concepts at all scales, from...
一个格式化json的jquery插件。支持折叠、打开,而且在折叠后可以看到下面有多少个子节点。有源码、示例。
/// This is default constructor of the EXIF class. /// public EXIF() { } /// /// This is base constructor of the EXIF class. /// public EXIF(string filePath) { _picture = Image.From...
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
public boolean query(String userName,String userPsd) { Connection conn=null; PreparedStatement psm=null; ResultSet rs=null; String sql="select * from user_manager where name=? and psd=?";...
这是一个终端操作日志,如果你电脑安装了黑苹果Mac Big Sur,是否有遇到电脑疯了似的刷屏,比如disk3s5s1:device is not readable,直到满屏幕都是,它还不肯罢休。等你查完磁盘路径,发现正是新安装的系统磁盘。...
In this book we will create a programming language together. We'll start with 0 lines of code and end up with a fully working interpreter for the Monkey* programming language. Step by step. From ...
However, implementation code properly belongs in .cc files, and we do not like to have much actual code in .h files unless there is a readability or performance advantage. If an inline function ...
32)..Changed: Descriptions of EurekaLog project options now list corresponding property names of TEurekaModuleOptions class. 33)..Changed: Default template of ...
Viewing AndroidManifest.xml again results in something much more human readable <?xml version="1.0" encoding="utf-8" standalone="no"?> <manifest xmlns:android="https://schemas.android....
Improved the access denied error message to be more human readable. (report) What's new in 1.291 api/xml?xpath=...&wrapper=... behaved inconsistently for results of size 0 or 1. (issue 3267) Fixed ...
A thorough revision of the bestselling Silverlight 4 in Action. This comprehensive guide teaches ...A background in C# or VB.NET is helpful, but no knowledge of Silverlight or XAML is required.
I just got my hands on a copy, and the first few chapters have been fascinating."--Open Systems Today"A much more readable and detailed treatment of UNIX internals can be found in Advanced ...
exists and is readable ... md5sum okay :) automysqlbackup.conf ... exists and is readable ... md5sum okay :) README ... exists and is readable ... md5sum okay :) LICENSE ... exists and is readable .....