调用接口报错:
java.sql.SQLException: Parameter index out of range (5 > number of parameters, which is 4)
原因:
在xml中直接使用“–”注释,会注释失效,会将后面的#{userId}参数继续打印,导致参数列表错误
解决:
删除被注释的废弃代码
调用接口报错:
java.sql.SQLException: Parameter index out of range (5 > number of parameters, which is 4)
原因:
在xml中直接使用“–”注释,会注释失效,会将后面的#{userId}参数继续打印,导致参数列表错误
解决:
删除被注释的废弃代码