原创 Mybatis報錯:Type interface com.mycode.dao.UserMapper is not known to the MapperRegistry.

問題描述: MapperRegistry不知道 com.mycode.dao.UserMapper這個接口。 解決思路: 以上圖示代碼首先是讀取核心配置文件(SqlMapConfig.xml),得到一個輸入流,構造者根據輸入流