Mybatis报错:There is no getter for property named 'xxxx' in 'class xxxx
程序员文章站
2022-07-15 13:50:06
...
Mybatis报错:There is no getter for property named ‘xxxx’ in 'class xxxx
这个错误遇到了好几次,前几次改了之后没有记住解决方法,找了半天错误,
总结的经验就是,错误是由于XXXMapper.xml中的sql语句写错了
例如:
<insert id="insert" parameterType="ReceiveMessage">
insert into to_receivemessage values(null,#{sendID},#{empID}, 0,now())
</insert>
和vo中的内容对不上,我的解决办法是将sql语句中用到的vo属性一个个复制到sql中避免书写错误
上一篇: 【PAT】1002
下一篇: 内网穿透反向代理应用 xfrp
推荐阅读
-
Mybatis报错:There is no getter for property named ‘xxxx‘ in ‘class xxxx
-
Mybatis报错:There is no getter for property named 'xxxx' in 'class xxxx
-
Mybatis报错:There is no getter for property named ‘xxxx‘ in ‘class xxxx
-
Mybatis报错:There is no getter for property named ‘xxxx‘ in ‘class xxxx
-
There is no getter for property named 'xxx' in 'class java.lang.xxxx'解决办法
-
Mybatis There is no getter for property named 'xxxx' in 'class java.lang.String'
-
Mybatis There is no getter for property named 'XXX' in 'class java.lang.XXX
-
Mybatis报错:There is no getter for property named 'xxxx' in 'class xxxx
-
Mybatis中传参包There is no getter for property named 'XXX' in 'class java.lang.Strin
-
Mybatis-There is no getter for property named 'id' in 'class java.lang.String'