22不小了
2015-08-02 11:12
数据库使用的是SQL Server <resultMap type="instrrmentmodel" id="instrrmentmodelMap"> <resultMap> <id property="ID" column="ID"/> <result property="CreateTime" column="CreateTime" javaType="java.sql.Timestamp" jdbcType="TIMESTAMP"/> <result property="FileAdd" column="FileAdd"/> </resultMap> 实体类: private Integer ID ; private Timestamp CreateTime ; private String FileAdd 错误提示:严重: Servlet.service() for servlet [MVC] in context with path [/EnterpriseEMS] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for sbzy.enterpriseems.model.domain.InstrrmentModel.selectList
仔细检查一下sbzy.enterpriseems.model.domain.InstrrmentModel.selectList命名空间和这个方法是否存在拼写错误,异常信息说的是mybatis找不到这个查询方法
通过自动回复机器人学Mybatis---基础版
107412 学习 · 786 问题
相似问题