IBatis作为持久层访问数据库时,传入List或是数组作为参数并在sql 中进行遍历时,如果传入的参数不是list或数组时就会报这个错,

ParameterObject or property was not a Collection, Array or Iterator string转数组

如果接收和遍历参数的sql确认都没有问题,则考虑传入的参数:

将参数转成数组或是list,建议优先使用数组,数组比list集合效率相对要高些

ParameterObject or property was not a Collection, Array or Iterator string转数组

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-02
  • 2021-10-13
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2021-05-13
相关资源
相似解决方案