IBATIS异常com.ibatis.sqlmap.client.SqlMapException: There is no statement named

Exception in thread "main" com.ibatis.sqlmap.client.SqlMapException: There is no statement named getDayLowRankingByAvgtimelrr in this SqlMap. at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.getMappedStatement(SqlMapExecutorDelegate.java:231) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:558) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118) at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:94) at com.hundsun.monitorAS.db.dao.ibatis.BaseDaoIbatis.find(BaseDaoIbatis.java:143) at com.hundsun.monitorAS.db.dao.ibatis.MidStatDaoIbatis.getDayLowRankingByAvgtimelrr(MidStatDaoIbatis.java:97) at com.hundsun.monitorAS.db.dao.ibatis.MidStatDaoIbatis.queryMidReport(MidStatDaoIbatis.java:125) at com.hundsun.monitorAS.db.dao.ibatis.MidStatDaoIbatis.main(MidStatDaoIbatis.java:129)

 

指定的sqlName缺少statementNamespaces.

queryForList("yourStatementNamespaces.yourSqlName",obj);

你可能感兴趣的:(IBATIS)