当前使用版本(必须填写清楚,否则不予处理)

MyBatis-Plus 动态数据源使用报错

MyBatis-Plus 动态数据源使用报错

该问题是怎么引起的?(最新版上已修复的会直接close掉)

在controller中设置了当前使用的数据源到session中

MyBatis-Plus 动态数据源使用报错

在mapper中设置了DS数据源注解

MyBatis-Plus 动态数据源使用报错

重现步骤

报错信息

执行到mapper的方法时,所报的错 .BadRequestException: Can not set final java.lang.Class field org.apache.ibatis.binding.MapperProxy.mapperInterface to com.baomidou.mybatisplus.core.override.MybatisMapperProxy