8、Flush类

461人浏览 / 0人评论

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Flush {
}

看其注释:
The maker annotation that invoke a flush statements via Mapper interface.
(1)maker annotation
(2)invoke a flush statements
(3)via Mapper interface
重点在于第二点,先看invoke的用法:
public Object invoke(Object obj,Object... args)throws IllegalAccessException,IllegalArgumentException,InvocationTargetException
这里的obj对象就是Mapper interface实现类,

全部评论

晴天下起了小雨
2017-10-01 18:00
很喜欢,果断关注了
wjmyly7336064
2017-10-01 18:00
相当实用,赞美了
橘大佬
2017-10-01 18:00
就是有些细节再到位点就好了…