问题:This is not a MyBatis Generator Configuration File解决办法出现这个问题,是因为配置文件的文件头不对导致的,打开mybatis官网,复制官网的文件头,就好了。如下图mybatis官网