springboot+mybatis報錯Invalid bound statement (not found)

今天作項目時報了一個錯提示說Invalid bound statement (not found),也就是說mapper接口綁定.xml文件出錯了,找不到指定的sql;緣由是程序沒有把.xml文件編譯到classes路徑下,這時須要在pom.xml文件的<build>標籤中加入下面的配置解決 <resources> <!-- maven項目中src源代碼下的xml等資源文件編譯進class
相關文章
相關標籤/搜索