![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
Mr. JaskonC
越努力 越幸运
展开
-
mybatis:There is no getter for property named 'id' in 'class java.lang.String'
问题描述:使用mybatis传入参数, 当参数类型是String ,Integer 等这些时。如果用他的<if test="id != null and id != ''">标签判断该参数是否为空,通常会爆There is no getter for property named ‘id’ in ‘class java.lang.Integer异常。解决思路:1、在接口中该...原创 2019-12-10 15:28:35 · 777 阅读 · 1 评论 -
Mybatis 中Expected one result (or null) to be returned by selectOne(), but found: 2
1、错误原因org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2...原创 2018-11-30 09:11:24 · 1239 阅读 · 0 评论 -
No plugin found for prefix 'mybatis-genertor' in the current project
解决方案,在pom里面添加<plugins> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>3.0.0</version> ...原创 2018-12-03 10:12:05 · 1570 阅读 · 0 评论