mybatis查询数据库报错空指针
org.apache.ibatis.exceptions.PersistenceException:###Errorqueryingdatabase.Cause:java...
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.NullPointerException
### The error may exist in file [F:\LhsmOpAppServ\WebContent\WEB-INF\classes\com\lhd\appserver\sms\maper\Code.map.xml]
### Cause: java.lang.NullPointerException
XML的代码是下面的
<select id="get" parameterType="MAP">
SELECT ID,Call_number,Type,Send_time,Availabel_period,Sms_code
FROM VERIFICATIONCODE
WHERE
Sms_code=#{smsCode} AND Call_number=#{callNumber} AND Type=#{type}
</select> 展开
### Error querying database. Cause: java.lang.NullPointerException
### The error may exist in file [F:\LhsmOpAppServ\WebContent\WEB-INF\classes\com\lhd\appserver\sms\maper\Code.map.xml]
### Cause: java.lang.NullPointerException
XML的代码是下面的
<select id="get" parameterType="MAP">
SELECT ID,Call_number,Type,Send_time,Availabel_period,Sms_code
FROM VERIFICATIONCODE
WHERE
Sms_code=#{smsCode} AND Call_number=#{callNumber} AND Type=#{type}
</select> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询