使用Mybatis查询数据库报错
结果却返回 : nested exception is org.apache.ibatis.binding.BindingException: Parameter 'idNumber' not found
这个时候就需要在参数前面加上 这个注解
@Param("参数名")
Mybatis默认参数传递方式有下面这几种
注意:@Param中的参数需要与mapper中的一致
结果却返回 : nested exception is org.apache.ibatis.binding.BindingException: Parameter 'idNumber' not found
这个时候就需要在参数前面加上 这个注解
@Param("参数名")
Mybatis默认参数传递方式有下面这几种
注意:@Param中的参数需要与mapper中的一致