Mybatis註解@MapperScan掃描包問題:Invalid bound statement (not found)

前幾天,因爲無知,將@MapperScan的路徑修改到dao的上一層,如下: 在此情況下,對dao層進行Junit測試,測試通過;但對service層測試,則報錯,報錯如下: 於是乎我就找了度娘,很多老鐵也給了各種解決方法(以下解決方法取自網絡):         1.檢查xml文件所在package名稱是否和Mapper interface所在的包名。         2.UserDao的方法在
相關文章
相關標籤/搜索