You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?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>
|
|
|
|
|
<!-- JDBC数据库驱动jar文件 -->
|
|
|
|
|
<classPathEntry location="D:\maven\repository\mysql\mysql-connector-java\5.1.46\mysql-connector-java-5.1.46.jar" />
|
|
|
|
|
<context id="context1" defaultModelType="flat">
|
|
|
|
|
<!-- PO序列化 -->
|
|
|
|
|
<plugin type="org.mybatis.generator.plugins.SerializablePlugin">
|
|
|
|
|
</plugin>
|
|
|
|
|
<commentGenerator>
|
|
|
|
|
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
|
|
|
|
|
<property name="suppressAllComments" value="false" />
|
|
|
|
|
</commentGenerator>
|
|
|
|
|
|
|
|
|
|
<!-- 配置一个连接 -->
|
|
|
|
|
<jdbcConnection
|
|
|
|
|
driverClass="com.mysql.jdbc.Driver"
|
|
|
|
|
connectionURL="jdbc:mysql://127.0.0.1:3306/zxzx"
|
|
|
|
|
userId="root"
|
|
|
|
|
password="zjh19990323">
|
|
|
|
|
</jdbcConnection>
|
|
|
|
|
|
|
|
|
|
<javaTypeResolver>
|
|
|
|
|
<property name="forceBigDecimals" value="false" />
|
|
|
|
|
</javaTypeResolver>
|
|
|
|
|
|
|
|
|
|
<!--生成实体类存放位置 -->
|
|
|
|
|
<javaModelGenerator targetPackage="domain"
|
|
|
|
|
targetProject="src/main/java">
|
|
|
|
|
<property name="trimStrings" value="true" />
|
|
|
|
|
</javaModelGenerator>
|
|
|
|
|
|
|
|
|
|
<!--生成映射文件存放位置 -->
|
|
|
|
|
<sqlMapGenerator targetPackage="mapper"
|
|
|
|
|
targetProject="src/main/resources">
|
|
|
|
|
<property name="trimStrings" value="true" />
|
|
|
|
|
</sqlMapGenerator>
|
|
|
|
|
|
|
|
|
|
<!--生成Mapper接口存放位置 -->
|
|
|
|
|
<javaClientGenerator targetPackage="mapperDAO"
|
|
|
|
|
targetProject="src/main/java" type="XMLMAPPER" />
|
|
|
|
|
|
|
|
|
|
<table schema="zx" tableName="student" enableCountByExample="false"
|
|
|
|
|
enableUpdateByExample="false" enableDeleteByExample="false"
|
|
|
|
|
enableSelectByExample="false" selectByExampleQueryId="false">
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
</context>
|
|
|
|
|
</generatorConfiguration>
|