Mybatis源码分析----Mybatis的mapper接口的方法为什么不能重载?
先上结论,Mapper接口的方法不能重载.
下面结合源码进行分析:
我们都知道,在mybatis加载配置文件的时候,会把配置信息存储到Configuration这个类中.(具体怎么读取的,在我的其他博文里也有写).其中有一个参数是
protected final Map<String, MappedStatement> mappedStatements = new StrictMap<MappedStatement>("Mapped Statements collection")
.conflictMessageProducer((savedValue, targetValue) ->
". please check "<