Reason: the version of mybatis plus generator which is dependent on mybatis plus is low
Solution:
Add dependency
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.4.0</version>
</dependency>