Press "Enter" to skip to content

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代替入参名,正确写法:

 

Be First to Comment

发表评论

电子邮件地址不会被公开。 必填项已用*标注