今天在调用喜洋洋写的企业层的代码是,报如下错误: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.gaiay.enterprise.dao.XyCompanyProfileMapper.insert at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:672) at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:507) at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:500) at org.apache.ibatis.binding.MapperMethod.setupCommandType(MapperMethod.java:240) at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:71) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:39) at com.sun.proxy.$Proxy20.insert(Unknown Source) 网上说还有一种情况,就是没有将sqlMapConfig.xml配置文件添加到sessionFactory中。 |
|