![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Exception
ProMan_XY
这个作者很懒,什么都没留下…
展开
-
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyR
<select id="findPrincipalByStruId" resultType="java.lang.String"> SELECT principal_staff_id from t_department where title = #{deptOrg} </select>sql的返回类型只能接收一个数据...原创 2019-10-28 15:42:52 · 9805 阅读 · 0 评论 -
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exception 解决办法
一般这种情况就是查询返回的结果可能是多条,咱这边返回类型只是个基本类型或者是个对象,可以在sql中加一个distinct或者把返回类型用list、map等括上也可以根据具体业务分析是否业务逻辑有误...原创 2019-06-20 17:16:19 · 22894 阅读 · 2 评论 -
Caused by: org.apache.ibatis.reflection.ReflectionException我碰到的情况,原因不唯一
映射文件:<select id="selectKeyByUserId"resultMap="Xxx"><![CDATA[SELECT * FROM 表名1where 1=1<if test="userId!=0">and ID=#{userId,jdbc...转载 2019-07-04 15:31:57 · 6960 阅读 · 0 评论