2020
10-10
10-10
Mybatis查询多条记录并返回List集合的方法
实体对象如下:/**使用lobmok插件*/@Getter@Setter@NoArgsConstructor@ToString@EqualsAndHashCodepublicclassVendor{privateStringvend_id;privateStringvend_name;privateStringvend_address;privateStringvend_city;privateStringvend_state;privateStringvend_zip;privateStringvend_country;}XML映射文件如下:<selectid="findVendorAll"resultType="vendor">select*fromVendors</select>接口文...
继续阅读 >