報錯org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)的一種特殊情況

創建mapper文件時,通過new file來創建.xml文件,手動加上.xml後綴名。 若不加上.xml後綴名,IDEA會彈出提示框讓選擇創建文件的類型,但是通過這種方式創建的文件,後綴名不會顯示。在代碼運行時會識別不了該文件,然後報錯org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)。
相關文章
相關標籤/搜索