该问题主要是没有识别到我们的配置文件,首先排查问题将xml文件放在resources文件夹下面,当然需要mark为resources root 文件夹

java.io.IOException: Could not find resource mybatis-config.xml_配置文件