您的位置:首页 > 大数据 > 人工智能

Parameter 'xxx' not found. Available parameters are [3, 2, 1, 0, param1, param2, param3, para

2016-09-09 12:08 1296 查看
当有多个参数时必须在Dao层中加入@Param,否则可能会一直报找不到某个参数:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'schoolYear' not found. Available parameters are [3, 2, 1, 0, param1, param2, param3, param4]

List<RiskEvaQuestion> getBySuiteId(Long suiteId);

List<RiskEvaQuestion> getPageBySuiteId(@Param("suiteId")Long suiteId,@Param("firstResult") int firstResult,@Param("lastResult") int lastResult);

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐