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"

 

猜你喜欢

转载自www.cnblogs.com/liyanzi/p/12199992.html
今日推荐