首页 > 其他 > 详细

mybatis异常集锦

时间:2019-07-18 22:00:42      阅读:119      评论:0      收藏:0      [点我收藏+]

 

【Mybatis】报错:Malformed OGNL expression: name!= null and name != ‘ ‘

【Mybatis】报错:Malformed OGNL expression: name!= null and name != ‘ ‘

英文感叹号和等号之间不能有空格;

 

nested exception is org.apache.ibatis.binding.BindingException: Parameter

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘productCode‘ not found. Available parameters are [prdRuleStageEntity, param1]

 

int updatePrdRuleStageEntity(Param("prdRuleStageEntity") PrdRuleStageEntity prdRuleStageEntity);

 

原因是mapper不应该有带 参数的注解。在xml中已经指定了parameter,就不要写@param

 

mybatis异常集锦

原文:https://www.cnblogs.com/lixuwu/p/11209989.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!