Spring Boot中的注解(annotation)

1、@Mapper和@Repository , 这两个都是用于注解dao层。如果使用@Reqository ,则还需要使用@MapperScan("xxx.xxx.xxx.mapper")来配置扫描地址。而如果使用@Mapper,则通过xml中的namespace里面的地址。 2、@Target:
posted @ 2020-03-17 13:54  一花一世界!  阅读(626)  评论(0编辑  收藏  举报