在使用MybatisPlus代码生成器时,在写如下代码时,出现报错。报错如下。

AutoGenerator mpg = new AutoGenerator();

AutoGenerator()‘ has private access in ‘com.baomidou.mybatisplus.generator.AutoGenerator

在这里插入图片描述

我用的mybatis-plus-generator依赖 是 3.5.2,我的 mybatis-Plus 依赖版本是 3.3.0, 应该是版本不兼容问题,我把mybatis-plus-generator依赖 换成 3.3.0,就可以了

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐