使用MyBatis-plus代码生成器 遇到的错误

使用MyBatis-plus代码生成器 出错

1、使用myabtis-plus代码自动生成器,启动时出现下面这个错误
在这里插入图片描述
pom.xml中添加下面依赖

  <dependency>
            <groupId>org.apache.velocity</groupId>
            <artifactId>velocity-engine-core</artifactId>
            <version>2.2</version>
        </dependency>

2、代码生成器启动以后,发现已经自动创建了一些包和代码
在这里插入图片描述
打开entiry包下的实体类User,发现出现下面这个错误,显示包不存在

在这里插入图片描述
pom.xml配置文件中添加下面依赖

   <!--配置ApiModel在实体类中不生效-->
    <dependency>
        <groupId>com.spring4all</groupId>
        <artifactId>spring-boot-starter-swagger</artifactId>
        <version>1.5.1.RELEASE</version>
    </dependency>

至此,使用MyBatis-plus代码生成器 遇到的错误全部总结完毕。

猜你喜欢

转载自blog.csdn.net/junR_980218/article/details/124851148