Position beyond number of declared ordinal parameters. Remember that ordinal parameters are 1-based! Position: 2



指定的参数位置超出了声明的参数个数,
检查下你的SQL语句查询的数量和参数设置语句的数量

占位符的个数和设置的个数不对应 或者类型不对应。。

hibernate查询报错,参数与占位符不符_占位符