
<resultMap id="BaseResultMap起名字" type="com.json.web.entity.CarCity" >
<id column="数据库字段" property="实体类字段" jdbcType="INTEGER" />
<result column="city_name" property="cityName" jdbcType="VARCHAR" />
</resultMap>
<select id="findAll" resultMap="BaseResultMap">
select * from car_city
</select>