1添加依赖 com.baomidou mybatis-plus-generator 3.3.0 org.apache.velocity velocity-engine-core 2.1 2 把MybatisGeneratorUtils.java放到自己的项目,修改配置 参考链接 https://blog.csdn.net/u010559460/article/details/103945985/ https://blog.csdn.net/qq_32331997/article/details/74908570