使用注解开发比配置文件开方更加方便
¤ 查询:@select
♦ 例:
@Select("select * from tb_user where id = #{id}")
public User selectById(int id);
¤ 添加:@Insert
¤ 修改:@Update
¤ 删除:@Delete
简单功能用注解,复杂功能使用XMl配置文件