运维网's Archiver
论坛
›
Mybatis
› mybatis 多参数不用vo传值需要@param()
trzxycx
发表于 2016-11-27 08:02:55
mybatis 多参数不用vo传值需要@param()
另外MyBatis还提供了一个使用注解来参入多个参数的方式。这种方式需要在接口的参数上添加@Param注解
示例:
接口方法
view plaincopyprint?
[*]public List<Teacher> selectTeacher(@Param(value="id") String id,@Param(value="sex") String sex);
页:
[1]
查看完整版本:
mybatis 多参数不用vo传值需要@param()