1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?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>
<context id="MYSqlContext" targetRuntime="MyBatis3" defaultModelType="flat">
<!-- 设置要使用的Java文件的编码 -->
<property name="javaFileEncoding" value="UTF-8"/>
<!--去掉注释-->
<commentGenerator>
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<!--需要配置数据库连接-->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://test-mysql.tamp-innner.com:3306/tamp_feo_user?useSSL=false"
userId="tamp_admin"
password="@imeng123">
<property name="nullCatalogMeansCurrent" value="true" />
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>
<!--指定entity生成的位置-->
<javaModelGenerator targetPackage="com.tanpu.feo.admin.dao.model.user" targetProject="src/main/java">
<property name="enableSubPackages" value="false"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<!--sql映射文件生成的位置 mapper.mapper-->
<sqlMapGenerator targetPackage="mapperuser" targetProject="src/main/resources">
<property name="enableSubPackages" value="false"/>
</sqlMapGenerator>
<!--指定DaoMapper生成的位置 mapper.java-->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.tanpu.feo.admin.dao.mapperuser"
targetProject="src/main/java">
<property name="enableSubPackages" value="false"/>
</javaClientGenerator>
<!-- <table tableName="org_fund_manager" domainObjectName="OrgFundManager">-->
<!-- </table>-->
<!-- <table tableName="org_fund_company" domainObjectName="OrgFundCompany">-->
<!-- </table>-->
<table tableName="curriculum_res" domainObjectName="CurriculumRes">
<!-- </table>-->
<!-- <table tableName="tag" domainObjectName="Tag">-->
<!-- </table>-->
<!-- <table tableName="tag_rel" domainObjectName="TagRel">-->
<!-- </table>-->
<!-- <table tableName="cs_file_record" domainObjectName="UserCsFileRecord">-->
<!-- </table>-->
<!-- <table tableName="QUERY_NAV_FUND_LIST" domainObjectName="QueryNavFundList">-->
<!-- <table tableName="cs_file_record" domainObjectName="CsFileRecord">-->
</table>
</context>
</generatorConfiguration>