Spring+mybatis+db2(aix环境) 查询sql报错,用主键查询或者是数据查询正常。。
用字符串查询报错。代码如下。
Caused by: org.apache.ibatis.exceptions.PersistenceException:
Error querying database. Cause: java.lang.NullPointerException
The error may exist in com/tecsun/platform/model/Userone.xml
The error may involve defaultParameterMap
The error occurred while setting parameters
SQL: select * from user where name=?
Cause: java.lang.NullPointerException
代码如下 。
select * from user where name=#{name}
。。。有人知道吗?
在Windows下面查询db2数据库正常。。。。。