对我来说,错误的原因是因为没有配置:
mybatis.mapperLocations=classpath:mybatis/mapper/*Mapper.xml
mybatis.config-location=classpath:mybatis/mybatis-config.xml

导致主库是可以正常连接数据库
会员分库则报出Invalid bound statement (not found) 错
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄