MyBatisSystemException

MyBatisSystemException

  • 错误信息:
  • 错误原因:
  • 解释:

错误信息:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘id’ not found. Available parameters are [arg1, arg0, param1, param2]

错误原因:

MyBatisSystemException的错误原因

解释:

Spring和Mybatis在联合使用时,如果Dao接口的方法中有多个参数,则每个参数都需要用@Param注解标明。(原来没加)

你可能感兴趣的:(异常文档,异常)