Result Maps collection does not contain value for Mapper.patientsMapper.BrandResultMap
一直出现这个提示,不知道到底哪里错了
@Data
public class patientsEntity {
private int id;
private String name;
private int age;
private String inTime;
private int TMSvalue;
private boolean status;
private String outTime;
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="Mapper.patientsMapper">
<resultMap id="brandResultMap" type="entity.patientsEntity">
<id column="id" property="id"/>
<result column="name" property="name"/>
<result column="age" property="age"/>
<result column="inTime" property="inTime"/>
<result column="TMSvalue" property="TMSvalue"/>
<result column="status" property="status"/>
<result column="outTime" property="outTime"/>
</resultMap>
<!--对所有数据进行查询展示-->
<select id="Search" parameterType="entity.patientsEntity" resultMap="BrandResultMap">
select * from `info`;
</select>
</mapper>
数据库:

idea:
