thanks for the reply but I think you got me wrong. I want to use mapper xml files but I don't know the name of file ahead of time, so I can't hard code it in mybatis.cfg like this
<mappers>
<mapper resource="/Mapper.xml" />
</mappers>
I would like to invoke a function and provide "mapper.xml" as an argument.
I see that we can do something like this where "mapperInputStream" is stream from resource "mapper.xml".
SqlSessionFactoryBuilder().build(mapperInputStream, DbProperties);
But I also another requirement where I need to provide multiple mapper.xml files for "SqlSessionFactoryBuilder" as my mapper statements are split into multiple files. is that possible to do?
Sreekanth