解决java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1).
Posted 栗栗本栗
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1).相关的知识,希望对你有一定的参考价值。
气死我了找了半天原来是注释的锅!!!
在mapper.xml里
因为想记录两种写法,我用了ctrl+/
注释,乍一看没毛病算注释掉了嘛
仔细一看原来不一样,无语住了
所以以后在这里还是要手动敲或者不要注释啊啊啊啊
以上是关于解决java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1).的主要内容,如果未能解决你的问题,请参考以下文章