<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" > <generatorConfiguration> <classPathEntry location="D:\Tools\mysql-connector-java-5.1.48\mysql-connector-java-5.1.48.jar" /> <context id="OracleTables" targetRuntime="MyBatis3"> <commentGenerator> <property name="suppressAllComments" value="true" /> </commentGenerator> <!--数据库连接信息--> <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://127.0.0.1:3306/ecsb_dev" userId="root" password="123456"> </jdbcConnection> <javaTypeResolver> <property name="forceBigDecimals" value="false" /> </javaTypeResolver> <javaModelGenerator targetPackage="com.crt.openapi.modules.common.domain.entity" targetProject="ecsb-apidomain"> <property name="enableSubPackages" value="true" /> <property name="trimStrings" value="true" /> </javaModelGenerator> <sqlMapGenerator targetPackage="com.crt.openapi.modules.common.domain.dao" targetProject="ecsb-apidomain"> <property name="enableSubPackages" value="true" /> </sqlMapGenerator> <javaClientGenerator type="XMLMAPPER" targetPackage="com.crt.openapi.modules.common.domain.dao" targetProject="ecsb-apidomain"> <property name="enableSubPackages" value="false" /> </javaClientGenerator> <table tableName="api_menu_resource" domainObjectName="ApiMenuResource" enableCountByExample="true" enableDeleteByExample="true" enableDeleteByPrimaryKey="true" enableInsert="true" enableSelectByExample="true" enableSelectByPrimaryKey="true" enableUpdateByExample="true" enableUpdateByPrimaryKey="true" > </table> </context> </generatorConfiguration>
<!--代码生成器依赖 --> <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.23</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.3.5</version> <scope>test</scope> </dependency> <dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> <version>2.3.2</version> </dependency> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId> </dependency> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency>
eclipse插件下载地址: https://i.cnblogs.com/Files.aspx