1添加依赖
<dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-generator</artifactId>
            <version>3.3.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.velocity</groupId>
            <artifactId>velocity-engine-core</artifactId>
            <version>2.1</version>
        </dependency>

2 把MybatisGeneratorUtils.java放到自己的项目,修改配置
参考链接
https://blog.csdn.net/u010559460/article/details/103945985/


https://blog.csdn.net/qq_32331997/article/details/74908570