![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis异常
烂柯人LQE
想要多多学习
展开
-
2021-05-10
2 字节的 UTF-8 序列的字节 2 无效。这个问题是因为在xml文件中的中文注释的问题,有两种解决方案:一、将xml文件的中文注释全部删除,解决二、将xml文件顶部的encoding=UTF-8改为encoding=UTF8可以解决问题...原创 2021-05-10 09:58:46 · 30 阅读 · 0 评论 -
2021-05-09
There is no getter for property named ‘user’ in ‘class’问题可能的原因1.字段名写错了2.@Param注解问题方法只有一个参数时, 如果xml文件中使用#{user.userId}, 则必须添加@Param注解方法只有一个参数时, 如果xml文件中使用#{userId}, 则不必添加@Param注解方法有多个参数时, xml文件必须使用#{user.userId}, 不必添加@Param注解正确写法写法一//Ma..转载 2021-05-09 10:06:23 · 181 阅读 · 0 评论