mybatis 异常,提示在实体类中找不到该字符的setter方法,一直在找实体方法的错,结果是keyProperty值,shopId双引号内多了个括号。
总结:keyProperty="shopId"<--->keyProperty="shopId " 看出差别了吗?
在双引号内,在编程语言中,空格也是字符。
mybatis 异常,提示在实体类中找不到该字符的setter方法,一直在找实体方法的错,结果是keyProperty值,shopId双引号内多了个括号。
总结:keyProperty="shopId"<--->keyProperty="shopId " 看出差别了吗?
在双引号内,在编程语言中,空格也是字符。