User user = sqlSession.selectOne("cn.jx.dao.IUserDao");
//产生错误,导致在 映射配置文件中 找不到具体方法
正确
User user = sqlSession.selectOne("cn.jx.dao.IUserDao.findAll");
解决Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
最新推荐文章于 2022-11-22 17:17:17 发布