springboot整合mybatis时Invalid bound statement

springboot整合mybatis时Invalid bound statement ,第1张

所有的东西都很简单,springboot整合mybatis,mybatis-plus

整合的时候xml的路径和接口的路径不是一个路径,所以单独配置:

mybatis:
    mapper-locations: classpath*:mappers/**/*.xml

但是,死活不生效,查了好多资料都不行,查着查着突然看到mybatis-plus的配置,想想是不是会发生覆盖,于是一试,果然,改成如下配置就好:

mybatis-plus:
    mapper-locations: classpath*:mappers/**/*.xml

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/870548.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-13
下一篇2022-05-13

发表评论

登录后才能评论

评论列表(0条)

    保存