MyBatis-MyBatis传入单个string参数异常

今天尝试用单个string作为参数传入mapper层报错:
代码:


报错:

There is no getter for property named 'ids' in 'class java.lang.String'

解决办法:
在${string}这种写法中,参数一律写为:_parameter。
正确写法应为:


你可能感兴趣的:(MyBatis-MyBatis传入单个string参数异常)