引入mybatisplus后,使用自定义方法报Invalid bound statement (not found)错误的解决方法

按照网上的所有方法都试了一遍,都不管用。

最后看了一下.yml配置文件,

mybatis-plus:
  mapper-locations: classpath:mappers/*Mapper.xml
  type-aliases-package: com.xxxxx.entity

  

此处我写成了mybatis:xxxxxx

我之前使用tkMapper时这里这样写没有任何问题。

 

如果使用mybatis-plus这里要写成mybatis-plus的配置,问题解决

posted @ 2021-11-20 10:42  太上感应篇  阅读(426)  评论(0)    收藏  举报