61 lines
3.6 KiB
XML
61 lines
3.6 KiB
XML
<?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">
|
||
<!-- 第二种mybatis逆向生成xml配置 -->
|
||
<generatorConfiguration>
|
||
<!-- 需要指明数据库连接器的绝对路径 -->
|
||
<!-- <classPathEntry location="C:\Users\admin\.m1\repository\mysql\mysql-connector-java\8.0.20\mysql-connector-java-8.0.20.jar" />-->
|
||
<classPathEntry location="D:\.m2\repository\mysql\mysql-connector-java\8.0.17\mysql-connector-java-8.0.17.jar"/>
|
||
<context id="msqlTables" targetRuntime="MyBatis3">
|
||
<!-- 生成的pojo,将implements Serializable-->
|
||
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"></plugin>
|
||
<commentGenerator>
|
||
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
|
||
<property name="suppressAllComments" value="true" />
|
||
<!-- 是否去除所有自动生成的文件的时间戳,默认为false -->
|
||
<property name="suppressDate" value="true" />
|
||
</commentGenerator>
|
||
|
||
<!-- 数据库链接URL、用户名、密码 -->
|
||
|
||
<jdbcConnection connectionURL="jdbc:mysql://101.37.12.135:3306/fycashier?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8"
|
||
driverClass="com.mysql.cj.jdbc.Driver" password="Twc6MrzzjBiWSsjh" userId="fycashier" >
|
||
|
||
<property name="nullCatalogMeansCurrent" value="true"/>
|
||
</jdbcConnection>
|
||
<javaTypeResolver>
|
||
<property name="forceBigDecimals" value="false" />
|
||
</javaTypeResolver>
|
||
|
||
<!--
|
||
默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer
|
||
true,把JDBC DECIMAL 和 NUMERIC 类型解析为java.math.BigDecimal
|
||
-->
|
||
<!--
|
||
生成model模型,对应的包路径,以及文件存放路径(targetProject),targetProject可以指定具体的路径,如./src/main/java,
|
||
也可以使用“MAVEN”来自动生成,这样生成的代码会在target/generatord-source目录下
|
||
-->
|
||
<!--<javaModelGenerator targetPackage="com.forezp.entity" targetProject="MAVEN">-->
|
||
<javaModelGenerator targetPackage="com.chaozhanggui.system.cashierservice.entity" targetProject="src\main\java">
|
||
<property name="enableSubPackages" value="true"/>
|
||
<!-- 从数据库返回的值被清理前后的空格 -->
|
||
<property name="trimStrings" value="true" />
|
||
</javaModelGenerator>
|
||
<sqlMapGenerator targetPackage="mapper" targetProject="src\main\resources">
|
||
<property name="enableSubPackages" value="true"/>
|
||
</sqlMapGenerator>
|
||
<javaClientGenerator type="XMLMAPPER" targetPackage="com.chaozhanggui.system.cashierservice.dao" targetProject="src\main\java">
|
||
<property name="enableSubPackages" value="true"/>
|
||
</javaClientGenerator>
|
||
|
||
|
||
<!-- 要生成的表tableName是数据库中的表名或视图名 domainObjectName是实体类名-->
|
||
<!-- <table tableName="%" schema="fycashier" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table>-->
|
||
<table tableName="tb_prosku_con" domainObjectName="TbProskuCon"
|
||
enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
|
||
enableSelectByExample="false" selectByExampleQueryId="false" >
|
||
</table>
|
||
|
||
</context>
|
||
</generatorConfiguration> |