Mybatis 开发中遇见的异常及处理

1 异常信息:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'email' not found. Available parameters are [param1, tag]
  传递的参数为Map类型
  一直对Map类型作为参数不是很熟悉,后来定位到Map参数取值问题。
  原因是:Dao接口里面使用了@Param 而参数为Map时,去参数应该是#{paraMap.email}
       public List<Book> getBooksUnderEmailAndTag(@Param(value="tag")Map<String,String> paraMap);
原文地址:https://www.cnblogs.com/riskyer/p/3341856.html