<artifactId>mybatis-plus-generator</artifactId> <version>3.5.1</version> </dependency> <!-- Druid依赖 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.2.6</version> </dependency> <!-- 数据库连接依赖 --> <dependency> <grou...
<artifactId>generator-demo</artifactId> <version>1.0-SNAPSHOT</version> <properties> <mybatis-plus.version>3.0.1</mybatis-plus.version> <mysql.connector.java.version>8.0.19</mysql.connector.java.version> <springfox-swagger.version>2.9.2</springfox-swagger.version> </properties> <dependencies> ...
添加模板引擎依赖,MyBatis-Plus 支持 Velocity(默认)、Freemarker、Beetl,这里使用Freemarker引擎。 <!-- https://mvnrepository.com/artifact/org.freemarker/freemarker --><dependency><groupId>org.freemarker</groupId><artifactId>freemarker</artifactId><version>2.3.32</version></dependency> 2 创建用户分类 ...
<mybatis-plus.version>3.0.1</mybatis-plus.version> <mysql.connector.java.version>8.0.19</mysql.connector.java.version> <springfox-swagger.version>2.9.2</springfox-swagger.version> </properties> <dependencies> <!-- mybatisPlus 核心库 --> <dependency> <groupId>com.baomidou</groupId> <artifa...
* @version 1.0 * @description: Mybatis-plus generator 代码自动生成器 * @date 2023/4/17 16:33 */ @Slf4j public class MPGeneratorConfigur { public static void main(String[]args) { /// 获取数据源信息解析器 final SimpleDataSourceInfoParser simpleDataSourceInfoParser =new SimpleDataSourceInfo...
<dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifactId><version>3.4.1</version></dependency> 由于需要用到逆向工程,所以引入依赖 <dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-generator</artifactId><version>3.4.1</version></dependency>...
-- 以下这个是默认的template 引擎 --><dependency><groupId>org.apache.velocity</groupId><artifactId>velocity-engine-core</artifactId><version>2.1</version></dependency> 2.将MPGenerator复制到你的项目目录下 3.修改以下配置: //数据库配置String dataBaseUrl="jdbc:mysql://localhost:3306/db_anti_...
--mybatis plus--><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifactId><version>3.5.3.1</version></dependency><!--mybatis plus generator--><!--https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-generator--><dependency><groupId>com.baomidou...
<version>3.2.1.RELEASE</version> </dependency> 二、自定义参数 1、配置 GlobalConfig(全局配置) //全局配置GlobalConfig gc =newGlobalConfig();//项目根目录String projectPath = System.getProperty("user.dir");//用于多个模块下生成到精确的目录下(我设置在桌面)//String projectPath = "C:/Users/xie...
--Mybatis Plus--><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifactId><version>3.x.x</version><!--使用最新版本,根据你的需求替换x为具体版本号 例如3.4.0--></dependency><!--MySQL Connector--><dependency><groupId>mysql</groupId><artifactId>mysql-...