当前位置:网站首页>9.5.1 parse method (mapperannotationbuilder) - SSM in depth analysis and project practice

9.5.1 parse method (mapperannotationbuilder) - SSM in depth analysis and project practice

2020-12-07 21:21:05 Memory

All the source code in the project can be found in the linked repository :https://github.com/chenhaoxiang/uifuture-ssm

9.5 MapperAnnotationBuilder(Mapper Annotation builder )

MapperAnnotationBuilder Full name org.apache.ibatis.builder.annotation.MapperAnnotationBuilder. You can tell by name that , Is used to parse the specified Mapper Interface corresponding method MyBatis Some of the annotations defined in .

although MapperAnnotationBuilder It will analyze Class The annotation contained in the object . however MapperAnnotationBuilder Will give priority to parsing XML The configuration file , And it's time to XML The name space of the file needs to be the same as Class Objects are in the same path , And the file name should be consistent with the class name , Only after parsing XML

版权声明
本文为[Memory]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/202012072120238581.html