报错情况如下org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘stocksList’ not found. Available parameters are [stockList, param]
这句话的大概意思是你找不到你传进来的参数
mybatis批量insert时使用foreach发生Parameter '***' not found. Available parameters are [collection, list]错误后来我发现是我collection里定义的参数“stocksList”没找到,最后发现只要把
mapper.java文件中方法参数从mybatis批量insert时使用foreach发生Parameter '***' not found. Available parameters are [collection, list]错误加@Param(“stocksList”)修改为
mybatis批量insert时使用foreach发生Parameter '***' not found. Available parameters are [collection, list]错误就行了,最后总结一下@Param中的参数应该要与Collection属性参数相同

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-26
  • 2021-09-26
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案