![]() |
#2
java小蚂蚁2016-07-26 16:02
|
最近在学mybatis的注解写法,遇到两个问题,请大神指点指点:
1.注解型的写法 映射怎么写?例如 select username as name from users;
ResultMap应该怎么写呢?有一个注解是@Resultmap();
2.怎么写foreach语句呢? 例如 delete from users where id in (,,,);
用xxxmapper.xml的写法可以配置foreach,用注解要怎么写呢?