- 博客(2)
- 问答 (1)
- 收藏
- 关注
原创 2021-03-22
ssm项目常见报错(持续更新) 1.报错:Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: No constructor found in com.bnuz.crud.bean.Department matching [java.lang.Integ
2021-03-22 11:49:24 45
原创 2021-03-22
Mybatis报错: There is no getter for property named xxx 上面只是个示例错误,在实际情况中,你仔细看看错误,就能定位到出现错误的mapper文件,然后,检查下相应的函数有没有加 @Param(“id”)这种注解 例如:上面的错误提示,mybatis在查询的时候不知道叫id的是啥,查看mapper文件,可能发现有个id在作为某个函数的形参时,没有@Param注解,加上即可 public User getUserById(@Param("id") String i
2021-03-22 11:45:06 39
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人