baomidou / dynamic-datasource

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务
https://www.kancloud.cn/tracy5546/dynamic-datasource/2264611
Apache License 2.0
4.75k stars 1.19k forks source link

执行xml中的自定义sql #671

Closed STJKWSSY closed 2 months ago

STJKWSSY commented 2 months ago

Please fill it out carefully, or it will be closed.

Enviroment

JDK Version(required): 1.8

SpringBoot Version(required): 2.6.13

dynamic-datasource-spring-boot-starter Version(required): 4.3.0

druid Version(optional): 1.2.22

mybatis-spring-boot-starter: 2.3.2

mybatis-plus-boot-starter: 3.4.3.4

Describe what happened

  您好, 在执行*Mapper.xml中的自定义sql时会出现,org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):这类错误, 购买的文档没有这方面的信息,同时Issues中关于这方面的解释的页面访问失效,请问如何解决这个问题?