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

 

mysql的xml文件中当传入的参数类型为String的时候,会抛出异常 mybatis There is no getter for property named 'xx' in 'class java.lang.String

错误写法:

 

 

正确写法:

解决办法将test="title=null"换成test="_parameter!=null"

 

 

 

 

posted @ 2020-01-16 10:35  菜菜caicai  阅读(167)  评论(0编辑  收藏  举报