mybatis 异常,提示在实体类中找不到该字符的setter方法,一直在找实体方法的错,结果是keyProperty值,shopId双引号内多了个括号。

MyBatisSystemException:No setter found for the keyProperty 'shopId ' in com.imooc.o2o.entity.Shop

 

MyBatisSystemException:No setter found for the keyProperty 'shopId ' in com.imooc.o2o.entity.Shop

 

总结:keyProperty="shopId"<--->keyProperty="shopId "     看出差别了吗?

在双引号内,在编程语言中,空格也是字符。

 

相关文章:

  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2021-11-07
  • 2022-12-23
  • 2021-11-04
  • 2022-03-02
  • 2022-12-23
  • 2021-11-09
  • 2021-07-03
相关资源
相似解决方案