mybatis配置的一些小问题总结 mybatis报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apach

来源:互联网 发布:arctime字幕软件 编辑:程序博客网 时间:2024/04/26 14:50

mybatis报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exception

问题一:

传参数为0的时候,为啥它默认也是null,我的参数为0和1,如果参数为0和1的时候做事件A,为null或者其他的时候做事件B,但是传1的时候正常,传0的时候它自动默认也是NULL,这个要怎么处理啊。

解决方案:

<if test="noRenewalFalg != null">,不能用<if test="noRenewalFalg!= null and noRenewalFalg!= '' ">

问题二:

在注册或者修改的时间如果用到时间参数的话,在mybatis里面也配置也必须是

<if test="noRenewalFalg != null">,不能用<if test="noRenewalFalg!= null and noRenewalFalg!= '' ">




0 0
原创粉丝点击