场景:
项目中使用的mybatis框架执行修改sql时报错BindingException:Mapper method xxxxx has an unsupported return type: interface java.util.List
分析:
因为修改sql中没有定义返回值也不需要定义,但是mapper中接收了List类型,所以报错不支持List类型,但是这句修改sql是执行成功后才报的错
解决:
去掉mapper中的接收值改成void
项目中使用的mybatis框架执行修改sql时报错BindingException:Mapper method xxxxx has an unsupported return type: interface java.util.List
因为修改sql中没有定义返回值也不需要定义,但是mapper中接收了List类型,所以报错不支持List类型,但是这句修改sql是执行成功后才报的错
去掉mapper中的接收值改成void