MyBatis报错:there is no getter for property named * in class java.lang.String

Bug:

在MyBatis里原先是这么写的,执行后报错:there is no getter for property named agentmechId in class java.lang.String。

Fix:

parameterType为String时,用_parameter代替入参名,正确写法: