Mapped Statements collection does not contain value fo ****(Mybatis)

org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.lang.IllegalArgumentException:
Mapped Statements collection does not contain value for com.zwwhnly.mybatisaction.mapper.getUserCount
Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.zwwhnly.mybatisaction.mapper.getUserCount

提示时Mapper映射有错,因此需要检查如下几个地方:

  1. mybatis配置文件中mapper映射是否正确
  2. 查看引用的sql映射是否正确

你可能感兴趣的:(java)