mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
创建多个环境,每个环境加载相同 Mapper (例如 RowMapper)会导致环境冲突。 代码: // 环境实例1 MybatisFlexBootstrap client1 = ...; client1.addMapper(RowMapper.class); // 环境实例2: MybatisFlexBootstrap client2 = // ; client2.addMapper(RowMapper.class); client1.getMapper(RowMapper.class); // client2 拿到的永远都是 client1 的 RowMapper client2.getMapper(RowMapper.class);