1.首先检查 target下 mybatis mapper 和 xml 文件是否都有。 2.如果没有xml文件 请在pom.xml中加以下 src/main/java/*.xml src/main/resources /. 相关文章: