Skip to content

Commit 7ff1d95

Browse files
committed
update annotation
1 parent aaaa5db commit 7ff1d95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book-mapper/src/main/java/com/imooc/my/mapper/MyMapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
import tk.mybatis.mapper.common.MySqlMapper;
2929

3030
/**
31-
* 继承自己的MyMapper
31+
* 继承自己的MyMapper,tkMapper已经完成了对单表的通用操作的封装,封装在Mapper接口和MySqlMapper接口;
32+
* 因此如果我们要完成对单表的操作,只需自定义Mapper接口继承Mapper接口和MySqlMapper接口
3233
*/
3334
public interface MyMapper<T> extends Mapper<T>, MySqlMapper<T> {
3435
}

0 commit comments

Comments
 (0)