【Mybatis】报错:Malformed OGNL expression: name!= null and name != ‘ ‘
英文感叹号和等号之间不能有空格;
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
原文:https://www.cnblogs.com/lixuwu/p/11209989.html