Mybatis Mapper.xml继承机制

Mapper.xml继承机制 github地址 Mybatis实际上隐藏了一个功能:Mapper.xml可以继承,这个在官方文档中并没有提到过,不过在这个issue (commit)里提到过。 Statement覆盖 利用Mapper.xml的继承机制,我们可以做到ChildMapper覆盖ParentMapper中select、insert、delete、update。下面举例说明: Interface: @MybatisMapper public interface Pa