IDEA mapper 报错:Invalid bound statement (not found)

抛开mybatis bing 问题不谈,很有可能是 target 路径下mapper.xml未编译。解决:在pom.xml添加 <resources> <!-- maven项目中src源代码下的xml等资源文件编译进classes文件夹, 注意:如果没有这个,它会自动搜索resources下是否有mapper.xml文件,
相关文章
相关标签/搜索