MyBatis Mapper.xml文件中的参数名错误:如何解决?
"这个mapper.xml文件的问题在于在SQL语句中使用了错误的参数名。正确的参数名应该是`instId`而不是`inst_id_`。修改后的代码如下所示:\n\nxml\n<select id=\"getByInstIdByName\" parameterType=\"java.lang.String\" resultType=\"com.redxun.bpm.core.entity.BpmInstLog\">\n select * from bpm_inst_log where inst_id_ = \#{instId} and USER_ID_ = \#{userId} order by create_time_ asc\n</select>\n\n
原文地址: https://www.cveoy.top/t/topic/pRe5 著作权归作者所有。请勿转载和采集!