在使用SpringBoot项目多模块间接口调用时,a模块调用b模块mybatis报错Invalid bound statement (not found),但是单独运行b模块则没有任何问题,这种情况下可能是application.yml配置文件错误
一般的写法
mybatis:
mapper-locations: classpath:/mapper/*.xml
config-location: classpath:mybatis-config.xml
正确的写法
mybatis:
mapper-locations: classpath*:/mapper/*.xml
config-location: classpath:mybatis-config.xml