download:Vite 从入门到精通,玩转新时代前端构建法令
<configurationFile>D:/GitFile/ka-product/ka-product-soa/src/main/resources/generatorConfig.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
</plugin>
generatorConfig.xml
<?xmlversion=”1.0″encoding=”UTF-8″?>
<!DOCTYPEgeneratorConfigurationPUBLIC”-//mybatis.org//DTDMyBatisGeneratorConfiguration1.0//EN””http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd”>
<generatorConfiguration>
<!– 数据库驱动: 抉择你的本地硬盘下面的数据库驱动包 –>
<classPathEntrylocation=”E:\repository\mysql\mysql-connector-java\5.1.30\mysql-connector-java-5.1.30.jar”/>
<contextid=”DB2Tables”targetRuntime=”MyBatis3″>
<commentGenerator>
<propertyname=”suppressDate”value=”true”/>
<!– 是否去除主动生成的正文 true: 是 false: 否 –>
<propertyname=”suppressAllComments”value=”true”/>
</commentGenerator>
<!– 数据库链接 URL,用户名、明码 –>
<jdbcConnectiondriverClass=”com.mysql.jdbc.Driver”connectionURL=”jdbc:mysql://192.168.147.35:3306/ka_product”userId=”root”password=”123456″/>
<javaTypeResolver>
<propertyname=”forceBigDecimals”value=”false”/>
</javaTypeResolver>
<!– 生成模型的包名和地位 –>
<javaModelGeneratortargetPackage=”site.muhu.cmp.ucenter.model”targetProject=”src/main/java”>
<propertyname=”enableSubPackages”value=”true”/>
<propertyname=”trimStrings”value=”true”/>
</javaModelGenerator>
<!– 生成映射文件的包名和地位 –>
<sqlMapGeneratortargetPackage=”mapping”targetProject=”src/main/resources”>
<propertyname=”enableSubPackages”value=”true”/>
</sqlMapGenerator>
<!– 生成 DAO 的包名和地位 –>
<javaClientGeneratortype=”XMLMAPPER”targetPackage=”site.muhu.cmp.ucenter.mapper”targetProject=”src/main/java”>
<propertyname=”enableSubPackages”value=”true”/>
</javaClientGenerator>
</generatorConfiguration>