`@Mapper
interface GoodsDao{
@sle("select * from tb_goods")
Object findGoods();
}`
如何判断接口上是否有注解System.out.println( GoodsDao.class.isAnnotationPresent(Mapper.class));
获取方法上的注解中sql
`sle desc0 = GoodsDao.class.getMethod("findGoods").getAnnotation(sle.class);
System.out.println(desc0.value());`
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。